Skip to main content

MGCLatticeWorkflowActionService.submitToWorkflow

Submits a document to a workflow of the given type, the way the document's own Submit does: the document checks first, then its status change together with the workflow activation. Supported document table: PurchReqTable (purchase requisitions, workflow type PurchReqReview); any other table is refused, because submitting it would start a workflow without the document's own submit logic.

  • HTTP method: POST
  • Route: /api/services/MGCLatticeWorkflowServiceGroup/MGCLatticeWorkflowActionService/submitToWorkflow
  • Service class: MGCLatticeWorkflowActionService

Parameters​

NameTypeOptionalDescription
_requestMGCLatticeWorkflowSubmitRequestContractNoThe request containing WorkflowTypeName, RecordRecId or DocumentNumber, TableName, Comment, and standard header fields.

Returns​

MGCLatticeOrderOperationResponseContract

An MGCLatticeOrderOperationResponseContract; on success DocumentId is the correlation id of the workflow instance (lower case, without braces), the key the work-item actions, recallWorkflow and getWorkflowStatus take.

Security​

  • Requires privilege MGCLatticeWorkflowServiceMaintain