// flow.rhai // Create a signature requirement let sig_req = new_signature_requirement() .flow_step_id(1) .public_key("0xABCDEF1234567890") .message("Please sign to approve this step.") .status("Pending") .save_signature_requirement(); print("New Signature Requirement:"); print(sig_req); // Create a flow step let step1 = new_flow_step() .description("Initial approval by manager") .step_order(1) .status("Pending") .save_flow_step(); print("\nNew Flow Step:"); print(step1); // Create a flow and add the step let my_flow = new_flow("purchase-request-flow-123") .name("Purchase Request Approval Flow") .status("Active") .add_step(step1) .save_flow(); print("\nNew Flow:"); print(my_flow);