Hi,
I'm currently building an low code app and DOM. Now i want to transition a DOM instance from outside the low code app and forms. This do work when i do an allowed transition. However i can't check if the transistion is allowd (without coding another allowed transistion in my app (the code generator doesn't have the allowed transistions in the classes. )) So quistion: How do i check if i'm allowed to do the transistion or can the DOM devops tools can be extended to also export the StatusTransitions? There is Status and Transistion but not the lookup for:
"Id": "newpreparing",
"FromStatusId": "f9d8352d-bf3b-4be4-9985-c52ad857a912",
"ToStatusId": "0b7afb25-d228-47de-961a-f01dd0ad261d",
"FlowLevel": 0
(export from SLClienttool)
Hi Gerwin,
Currently, we only intend to generate IDs with the DOM devops tools.
I suggest retrieving the DomBehaviorDefinition.
The StatusTransitions property contains all transitions and will allow you to easily iterate it to find a valid transition.
That did the trick! Added a few more checks and now i can just call the script to go to an state and it will check if it is allowed and if so it will retrieve the transition name so no more thinking of all the transistion id’s 🙂