How do we implement async way in mistral workflow

42 views
Skip to first unread message

leo...@gmail.com

unread,
Jun 19, 2017, 10:02:25 PM6/19/17
to StackStorm

Hi dear,

No sure if this is right place to ask support.
We're using st2 as our workflow engine, there should be a very common for the scenario to implement async way to external tools.
a specific user case for instance as described below:

  1. action to create a ticket in remedy
  2. workflow should hold up until remedy close/approved ticket
  3. remedy inform workflow
  4. workflow continue

I tried to find kind of way to implement, but seems nothing details mentioned in official docs.

must appreciated if any help can get from your side.

Leo

Paul Hoefgen

unread,
Jun 20, 2017, 4:36:40 PM6/20/17
to StackStorm
I'd suggest having two workflows, one that triggers when you want to create a ticket, that includes storing a reference to the ticket in the st2 key value store. 

Then i would write/install a remedy API  stackstorm sensor that is notified  when a ticket changes state, checks the key value store for "known tickets" and kicks a new workflow from there. 

Haojie Xu

unread,
Jun 21, 2017, 12:30:56 AM6/21/17
to StackStorm
Thanks Paul for the suggestion, right now we will use another solution instead.
1. Set timeout for long run actions, for instance: timeout = 3600 * 24 *3 (3 calendar days)
2. One action to create ticket
3. Another action to check the ticket state/approval state periodically.
Reply all
Reply to author
Forward
0 new messages