We use the Style version of System 21. We are running Workflow on the IBM i. I have a Workflow that is triggered when an Item is amended using 5/STINMUS. I was tasked with changing the Workflow so that a message is triggered under certain conditions. That I know how to do and have it working...sort of. The issue is that the Workflow behaves differently depending on how the User amends an item. For example, if I:
The Workflow is triggered and I get a message if my conditions are met.
The Workflow is triggered but no message even if the conditions are met. Our Workflow uses nested business processes depending on what action is performed. For example, if I create an item, it uses a Business Process named Item Master and it looks for the Item Master Create Activity Code. If I amend an item, it uses a Business Process named Item Master Update which looks for the Item Master Amend Activity Code. Item Master has its own logic and is different than the logic in Item Master Update.
With Infor's help, we were able to track down the issue which is that the Activity Code changes. When I add a Width for example, the Activity Code starts out as the Item Amend Activity Code but then switches to the Item Create Activity Code. I thought I had a handle on what I needed to do so I changed the logic in the Item Create Business Process(Item Master) but that didn't work because the Activity Code doesn't start out as the Item Create Activity Code. I was thinking that I needed to change my nested Item Amend Business Process to include both Item Amend and Item Create Activities but when I validate using ActiveModeler, it tells me that it is defined with 3 start nodes but in the Design Database it has 4 start nodes. I think I want 4 start nodes but I am not sure how to fix it or if that is even the direction I want to go. I am still quite green with Workflow, inherited it, and no one else in my organization knows anything about it. If anyone can help me with my issue, I would appreciate it. The screen shot below is how the start of the Workflow Process was designed before I touched it.
The screen shot below is how how the start of the Workflow process looks now. What I ended up doing was moving the Activity for Item Master Amend inside the Item Master Updates Business Process. I also added the Activity, Item Master Create, in the Item Master Amend Business Process with a start condition. Again I'm not sure if that was the right thing to do. The end result should be that when the Activity Code changes from Item Master Amend to Item Master Create, it should still send the message if the criteria is met.