how to stop the workflow status from pending to submit through code

Hi All

In an assembly the parent attribute value is not matching the BOM attribute value. When the user clicks the SUBMIT status button in the ECO workflow it should validate the condition above and should not change the status to SUBMIT. In other words the status must remain as PENDING till both Parent and BOM attribute values match up. How to achieve this using SDK. Please help.

No Files Were Attached
Add Comment
2 Answer(s)

Take a look at pre-events with the Groovy event framework. From there, you can prevent the action from occurring when there is an error.

keithrust Agile Angel Answered 4 days ago.
Add Comment

Thanks Keith for the update. But the customer is keen on java SDK and does not want the groovy script. Also I have never written a Groovy script before.

JaiPanicker Agile User Answered 2 days ago.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.