Transitions via Engine API

1
0
-1

Hi,

I need to get de value of transitions that was in the conditions of the gateways via Engine Api. After doing a search i found the methods getOutgoingTransitions() and getIncommingTransitions() in Engine API. Can someone help me to use this methods?

Regards,

Diana

Comments

Submitted by Pablo Alonso de... on Tue, 04/21/2020 - 10:53

Hi Diana,

Looks not a normal use case...

Can you explain me why you want that ? what are you looking for?

Thanks

Submitted by dianabento95 on Tue, 04/21/2020 - 11:00

Hi Pablo,

I need that values via engine api to fill a dropdown in my own forms. For example: Gateway Exclusive, with in one path condition decision=="Paid" and in other path decision=="Not Paid". In my dropdown i want that apear "Paid" and "Not Paid". P.S. "decision" was a process variable. Doesn't make sense to you?

Thanks,

Diana

2 answers

1
0
-1
This one is the BEST answer!

Hi Diana,

Here you have a working example.

I created a new BDM object Referencial Data to keep different list of static values

A process to populate it with some static lists (it can be evolved to handle CRUD)

Another example process using this list and the value to be sent to the process that then it is used to take the decision.

I hope it helps

1
0
-1

Diana,

The condition you can have in those paths can be quite complex to be processed and shown in a form.

What you want to is to provide a list of options ["Paid","Not Paid",.. ]to the user and he will send the decision when executing the task. The list can be hardcoded or retrieved from BDM, or an External DB for example...

Cheers

Comments

Submitted by dianabento95 on Tue, 04/21/2020 - 11:14

I try to use a list of options but I don't know how to use this in paths. and how to save using BDM. Can you help me?

Cheers

Submitted by Pablo Alonso de... on Tue, 04/21/2020 - 11:24

Diana, I am going to prepare a complex example on how to use BDM to share referencial data, in the meantime you can do the following: On UID: Create a variable of type JSON with value ["Paid","Not Paid"], and use this variable as available values of a select box (or similar) and set the value to the contract On Studio, Use the contract value to set your process variable

Submitted by dianabento95 on Tue, 04/21/2020 - 11:47

Pablo, can you please share this example with me?

Thanks,

Diana

Notifications