cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to create only one workflow per one impex file?

0 Likes
332

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

Accepted Solutions (0)

Answers (0)