Tim Driven Development | Test until the fear goes away
Muffy Paine wrote:I want this step to be only created 20% of the time or 1 in 4 of every enrollment that comes along.
Writing that in simple words would be a good start.Muffy Paine wrote:. . . 'Enable conditional Step creation with a formula(must evaluate either True or False)' snapshot attached. . . .
All things are lawful, but not all things are profitable.
Muffy Paine wrote:what do you mean by the 'environment' can you explain
Muffy Paine wrote:Thanks for the info. How would a code in general look like for a problem I am trying to solve.
Create a random number between 0 and 1
If it's less than 0.2 then do the extra workflow step.
Muffy Paine wrote:How do I complete the below code:
if (ThreadLocalRandom.current().nextInt(100) < 20) {step.WorkflowStep = "Installation"
}
Muffy Paine wrote:Let me give you an example of a code which was used in the past within the same formula box for another purpose so we know the structure of the code that's been used.
Paul Clapham wrote:But that's JavaScript, not Java.