Cut a Workflow call from another
Hi All,
I’m wondering to know if it’s easily possible to cut or disable the workflow call (launch by Start Event : “Relation was added on a asset”) during the running of an other workflow ?
I have a first Workflow A who add many relations between assets and for each added relation, a second Workflow B is automatically launched. It’s create issue on perf because of the multiple call.
Many Thanks for your help.
Camille
camillemaire
Posted 4 years ago · Edited 1 year ago·Last reply 4 years ago
2 comments
camillemaire
OP4 years ago · EditedPerfect Many Thanks Arthur, I’ll try that
arthurburkhardt
·4 years ago · EditedI guess you can change the workflow definition of
workflow Bwhen you startworkflow A, then restore it at the endBefore adding relations
workflowDefinitionApi.changeWorkflowDefinition( ChangeWorkflowDefinitionRequest.builder() .id(workflowBID) .enable(false) .build() )After adding relations
workflowDefinitionApi.changeWorkflowDefinition( ChangeWorkflowDefinitionRequest.builder() .id(workflowBID) .enable(true) .build() )