wfm.CopyWorkflow

This job creates a copy of a workflow model including the workflow masks and events.

1. Input Parameters

Name Type Required Description

UserId

STRING

Yes

ID of the executing user

SourceOrganisationId

STRING

Yes

ID of the organization to copy from

SourceWorkflowId

STRING

Yes

ID of the workflow model to be copied

TargetOrganisationId

STRING

Yes

ID of the organization to copy to

TargetFamilyId

STRING

Yes

ID of the workflow family to copy to

TargetWorkflowName

STRING

Yes

Name of the new workflow

2. Output Parameters

Name Type Dependency Description

WorkflowId

STRING

ID of the new workflow model

3. Return Value

(INT): 0 = Job successful, otherwise error code.