2018 Oct 23 11:38 AM - edited 2024 Feb 04 4:35 AM
I want to trigger only one instance of workflow template for all 20 products that are there in a impex file. Below is the line of code I am using in impex file to trigger a workflow. But it is triggering 20 instances of workflow template. I know that it is because of "afterEach" script.
"#%groovy% afterEach: workflowService.createWorkflow(workflowTemplateService.getWorkflowTemplateForCode('wfl_template_name'), modelService.get(impex.lastImportedItem))"
Please let me know if there is a way with which we can trigger only one instance of workflow for all the products in an impex.
Thanks
Request clarification before answering.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.