1239
func (a *activities) archetypeIDToName(ctx context.Context, archetypeID chasm.ArchetypeID) (chasm.Archetype, error) {
1240
if archetypeID == chasm.UnspecifiedArchetypeID {
1241
>
// For backward compatibility reason, the archetypeID is set to 0 in MigrationExecutionInfo
activities.go
1242
>
// for workflows. But 0 is not a valid archetypeID in chasm.Registry, so explicitly return
1243
>
// WorkflowArchetype here.
1244
>
return chasm.WorkflowArchetype, nil
1245
>
}
1246
1247
// chasm activity and nexus operation libraries are not registered on worker service, so hardcoding