cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to not allow sync of products which have an active workflow?

Former Member
0 Kudos

Hi, I am using an activation script to create a workflow on every time a specific product attribute is changed. It creates a workflow and assigns to the correct user.But irrespective of the decision-approval/disapproval/no decision, the product can be synced and the changes are visible on the site.

How do I stop sync for product changes which are unapproved/no decision in the workflow?

Thanks!

former_member620692
Active Contributor
0 Kudos

Do you mean the products with approvalStatus as check, are also getting synchronized?

Former Member
0 Kudos

No, the approvalStatus is as it is. The workflow is created if a specific custom attribute is changed by user- "A" and I want that specific change to go online only if user "B" approves it.

former_member620692
Active Contributor
0 Kudos

Hi - I would try writing an interceptor where I would change the value of approvalStatus to check if the custom attribute is changed in Staged version. This way, it will ensure that this product is ignored by the synchronization job.

former_member620692
Active Contributor
0 Kudos

Hi - did it help?

Former Member
0 Kudos

Hi ,

Actually changing the approvalStatus to check will make the product go offline, I do not want that. Thanks for you help.

Regards,

former_member620692
Active Contributor
0 Kudos

Hi - changing the approvalStatus to check in Staged version will not make the product go offline.

Former Member
0 Kudos

Hi ,

Yes, I know. But if a sync and indexing runs in the background it will.

Hence, my question that I want to stop the sync -- only for the "changes" to the products for which a decision is pending in a workflow, not the product itself.

Accepted Solutions (0)

Answers (0)