Coin Toss

Use this step to simulate a coin toss action result.

Last published at: September 9th, 2025

coinToss Step

Description:

This step simulates a coin toss and returns either 'Head' or 'Tail' at random. 

 

Inputs

  • None
 

 

Returns

  • Heads – Head side of coin 
  • Tails – Tail side of coin
 

  

 

Usage:

 

 

Example:

Let’s build and execute the “coinTossDef” example.      

  • Create a new definition named “coinTossDef” and open it in designer mode. 
  • Drag a “coinToss” and “setWFStep” to the canvas.
  • Connect the dots between the “Start” and the other steps, as shown above.
  • Click the “coinToss” step to configure its “Required” properties. Provide a name for the step, then click Save. Note: Click the "AI Predict" button to have the Copilot add new process steps that match your process description. 

 

  • Click the first “coinToss” step to configure its “Required” properties. Set the Instance State to “Heads,” then click the Save button. Note: Click the "AI Predict" button to have the Copilot add new process steps that match your process description. 

 

  • Click the second “coinToss” step to configure its “Required” properties. Set the Instance State to “Tails,” then click the Save button. Note: Click the "AI Predict" button to have the Copilot add new process steps that match your process description. 

 

  • The “Logging” configuration is necessary for documentation and to measure workflow progress and percent complete. This is done by configuring the step state and percent fields individually, as shown below. Configure the “Logging” using the following properties.

 

  • Save the process definition, create a new instance, and execute it. The process step should return either Heads or Tails at random as the result. 

 

 

Definition Sample:

You may download the sample definition(s) from the provided link and later import them (drag-and-drop) into your FlowWright Process Definition (XML file) or Form Definition (HTML file) page.

Note: Please verify and complete the process steps for any missing configurations, such as file path references and database connections, after the import. Then, save the definition to confirm the changes.

Click here to download the sample file.