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

How to create only one workflow per one impex file?

Former Member
0 Likes
396

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

Accepted Solutions (0)

Answers (0)