Curious Betsy
Curious Betsy
Posts: 115


10 days ago
Curious Betsy
Curious Betsy
Posts: 115
I have a few questions about the Decisions product:

1) Is it possible to set a timeout value for rules? If so what happens if a rule times out is an error thrown, does the rule return an outcome?
2) Is it possible to check that rules have unit tests associated with them on check in to the Repository? Can the Repository ensure that the unit tests are run and have all passed before allowing a check-in?
0 link reply with quote
james.hartzell@decisions.com
james.hartzell@decisions.com
Posts: 130


10 days ago
It isn't currently possible to declare a timeout for rules. If a rule or rule step does encounter an error during execution, the rule will throw an exception message or return a 500 response if it was being called externally. If the rule is in a flow, you can toggle 'Add Outcome For Exception' in its properties to redirect the flow's logic and pass any exception data into the flow itself if the rule were to throw an exception.

Repository Action Flows can be used to validate designer items before they are checked into a repository. In flows with this behavior, you can utilize steps found under Integration > Internal Services > Unit Test Service to run unit tests for the items included in a check-in.


I built a demo project for you to show how you might automatically validate designer projects before they can be checked into a repository. Please import this project and review it.

0 link reply with quote


(Ctrl+Enter)




Powered by Jitbit Forum 8.3.8.0 © 2006-2013 Jitbit Software