Description
Please advise the best practice how to chain scripts with an IF condition in Composer.
It is MM01 and MM02 with 3 conditions and MM01 needs to run 2 or 3 times and MM02 needs to run 1 or 2 times based on a field on form
I have the scripts:
- MM01
- MM01 Extension A
- MM01 Extension B
- MM01 Extension C
For MM01 Extension A-B-C MM01 is a pre requisite to have the material number.
After pushing a button to run MM01, based on a form field value (valuation category), I can have the following scenarios:
- IF valuation category is EMPTY, run only MM01
- IF valuation category = S, run MM01 and use created material number as reference to re run MM01 Extension A and MM01 Extension B
- IF valuation category = O, run MM01 and use created material number as reference to re run MM01 Extension A and MM01 Extension B and MM01 Extension C
If I add these into a rule on a button, only MM01 is running, the others are not.
Applies To
11x;12x
Solution/Immediate Workaround
This can be achieved by writing the rule and not Button ; if use Button to call the chain script it is not working as expected as per scenario the value is picked from first script and then the same value is used in the second script; because there is no way to add the delay in the chain scripts in Composer ; the only way to achieve it is by writing the rule.
Attaches is sample solution created in version 12.1 with 3 Webservice. Chained then using rules. The Webservice are called based on the value of the character (D or O) and the content of the Log Field.
Additional Information
Winshuttle Internal Use only - WIN-39038
Comments
0 comments
Please sign in to leave a comment.