1520
}
1521
switch info.TaskType {
1523
>
return &tasks.StateMachineOutboundTask{
1524
>
StateMachineTask: tasks.StateMachineTask{
1525
>
WorkflowKey: definition.NewWorkflowKey(
1526
>
info.NamespaceId,
1527
>
info.WorkflowId,
1528
>
info.RunId,
1529
>
),
1530
>
VisibilityTimestamp: info.VisibilityTime.AsTime(),
1531
>
TaskID: info.TaskId,
1532
>
Info: info.GetStateMachineInfo(),
1533
>
},
1534
>
Destination: info.Destination,
1535
>
}, nil
1536
case enumsspb.TASK_TYPE_CHASM:
1537
return &tasks.ChasmTask{