811
// by processing a replication task from a cluster that has state transition disabled
812
len(executionInfo.TransitionHistory) > 0 {
814
>
transitionHistory := executionInfo.TransitionHistory
815
>
return []tasks.Task{&tasks.SyncVersionedTransitionTask{
816
>
WorkflowKey: workflowKey,
817
>
ArchetypeID: archetypeID,
818
>
Priority: enumsspb.TASK_PRIORITY_LOW,
819
>
VersionedTransition: transitionhistory.LastVersionedTransition(transitionHistory),
820
>
FirstEventID: executionInfo.LastFirstEventId,
821
>
FirstEventVersion: lastItem.Version,
822
>
NextEventID: nextEventID,
823
>
TaskEquivalents: taskEquivalents,
824
>
TargetClusters: targetClusters,
825
>
IsForceReplication: true,
826
>
}}, 1, nil
827
>
}
828
if !isWorkflow {
829
return nil, 0, softassert.UnexpectedInternalErr(r.logger, "state-based replication not enabled for chasm execution", nil,