How to invoke signal or message ? #233
Replies: 18 comments 35 replies
-
@ALL - feel free to pitch in and help me out on how to resolve this. Any help would be highly appreciated !! |
Beta Was this translation helpful? Give feedback.
-
@ralphhanna - such a great reply and i feel you already pointed me to the right gateway. I was unaware of the event based gateway and may be this would solve my problem. Let me try to build the model using the same and update you acc. for your help. But thanks again for the very quick help. |
Beta Was this translation helpful? Give feedback.
-
Ok. I've tried using the event gateway but my tokens are stuck with the "Receive Task". Ideally token shouldn't be waiting at this task right ? I'm sharing the model i've configured to test. I thought of going with parallel gateway to solve the problem. But in this way, the token is already there with both the user tasks. Now i wanted a way to drop the already created token if any one approves from GroupA (at user task 1) OR if one person approves from GroupB(at user task 2) then again i need to drop the token offered at the GroupA. Now after your help, i've tried configuring the "Event Based Gateway". I could see two problems,
Usually we are starting the engine and after that using the .invoke by reading the last item. In this case, i'm not getting a better / efficient way to solve the problem Or i might be thinking and configuring my workflow as wrong. Please guide me as i'm new to the realm of this bpmn engine. Thank You |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hello @ralphhanna, I've ran into another issue where i'm trying to configure the workflow for the above mentioned problem. Which gateway to use, because both Exclusive & parallel are not fitting in solving my requirement.
Any help would be highly appreciated !! |
Beta Was this translation helpful? Give feedback.
-
@ralphhanna - tried with the standard loop as well with the shared script at the docs. But the code is breaking as token is not having the loop defined in it. Also, for every invoke for the standard token, we are creating two tokens. Any reason for that ? Ideally it should only be one token right ? Thank You |
Beta Was this translation helpful? Give feedback.
-
Hello @shashank-yelluri , Based on your requirements the attached model does the trick ![]() Please update to release 2.2.15 |
Beta Was this translation helpful? Give feedback.
-
sorry, for late response, forgot to hit comment button |
Beta Was this translation helpful? Give feedback.
-
![]() @ralphhanna - even after the update, it is not working :( |
Beta Was this translation helpful? Give feedback.
-
Release 2.2.17 is now ready ![]()
![]() |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Examples of valid collection: $(item.data.records)
(item.data.records)
item.data.records
[1,2] Same for Condition |
Beta Was this translation helpful? Give feedback.
-
for more complex scenarios you can use a method like this: $appServices.getCollection(this) and appServices will have a function: async getCollection(token) {
console.log('get collection',token.currentNode.id);
return ['A','B','C'];
} |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Each Instance of the loop has own token with own data, but the data.candidateGroups is declared at the parent token. |
Beta Was this translation helpful? Give feedback.
-
I simply used vs code to debug the app, and noticed that at the item level data was empty. |
Beta Was this translation helpful? Give feedback.
-
Hello @ralphhanna, ![]() |
Beta Was this translation helpful? Give feedback.
-
Hello @ralphhanna,
Good Evening !!
We are using your bpmn engine for solving the workflows. Now, i have one problem where i would need to offer the token to three different user tasks. For which, i have created an inclusive gateway. After any one user task gets executed or say 2 user tasks are executed, i want to trigger a message or signal to remove the created token for the user task 3. Is there any way or possibility for achieving this ? Or solving this problem in a better way ?
I've gone through the code and our engine is only having .start() .invoke() & .assign(). I could not find any other functionalities.
Your response would be highly appreciated !!
Thank You.
Beta Was this translation helpful? Give feedback.
All reactions