on ‎2018 Oct 19 12:17 AM
Dear Experts,
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.
"#%groovy% afterEach: workflowService.createWorkflow(workflowTemplateService.getWorkflowTemplateForCode('wfl_template_name'), modelService.get(impex.lastImportedItem))"
I would like to know "impex"is instance of which class. I would want to search other methods in that class. Or please let me know if there is a way with which we can achieve this. Just like "afterEach" is there a method "afterLast". Please suggest.
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.