The first step is collecting the customer’s personal information.
1
Add a User Task
Drag a User Task node after the Start Event. Name it Fill Personal Data.
2
Design the form
In the node settings, open the UI Designer. Add form fields:
Full name (text input)
Email (text input with email validation)
Date of birth (date picker)
Annual income (number input)
3
Configure the data model
Map each field to a key in your data model:
application.fullName
application.email
application.dateOfBirth
application.annualIncome
4
Add a Continue button and wire it
The form cannot advance the process on its own: it needs a button bound to an action. A user task already comes with a Save Data action named saveData, set to Manual so it waits for the user, so you do not have to create one.In the UI Designer, drag a Button onto the screen and label it Continue. In its Event Handlers section, click +, choose the On Click trigger, set Action Type to Node Action, and select saveData.Check Add forms to submit and select your form. This validates the visible fields and sends their values with the action.
Buttons never advance a process on their own. Each button corresponds to a manual node action on the same node, reached through an On Click event handler. If you are coming from 5.1.x, the Event Handlers section is what replaced the separate UI actions tab. See the migration mapping for the old-to-new action names.
Call an external credit scoring service automatically. In FlowX, integrations run as Workflows: lightweight flows that call external systems through Data Sources, triggered from your BPMN process with a Start Integration Workflow action.
1
Create the credit-scoring workflow
Define your scoring service as a RESTful System data source, then build a workflow that calls it. New to workflows? The integration workflow tutorial walks through this exact Data Source + Workflow setup.
2
Add a Send Message Task with a Start Integration Workflow action
Drag a Send Message Task after the user task. Add a Start Integration Workflow action, select your credit-scoring workflow, and map the customer data (for example ${processInstanceData.application.annualIncome}) as workflow input.
3
Add a Receive Message Task
This waits for the workflow to complete. In Integration Output, add a Data Stream, set Source to Workflow, and select your credit-scoring workflow. With Legacy Mapping off (the default), use the wrench button next to the workflow’s End node under Output Mapping to map the score to application.creditScore. Alternatively, turn Legacy Mapping on and set Key Name to application.creditScore.
The wrench opens the data mapping for that End node. Map the workflow’s creditScore output to application.creditScore:
Leaving the output mapping empty stops the process with a missing data stream mapping error.
Don’t have a credit score service? For testing, replace the two message tasks with a Service Task that has a Business Rule action, and simulate a score based on annual income.
Learn more about the Start Integration Workflow action
Step 4: Branch based on credit score (Exclusive Gateway)
Different credit scores qualify for different card types.
1
Add an Exclusive Gateway
This creates a decision point based on the credit score.
2
Add Service Tasks for each branch
Add three Service Tasks (Premium, Standard, Basic) and draw an arrow from the gateway to each one. The gateway’s Advance to list only shows nodes it is already connected to.On each Service Task, add a Business Rule action with JavaScript as the language, and set the card type:
Let the customer review their card type and confirm.
1
Add a User Task
Name it Review and Confirm.
2
Design the confirmation screen
Display the assigned card type and benefits. Add a Container or Card to the screen, then place a Text component inside it with, for example, You have a ${application.cardType} card. The value is filled in from the process data when the screen shows.
3
Add the Confirm button
Add a Button labeled Confirm in the UI Designer and give it an On Click event handler with Action Type set to Node Action, pointing at this node’s saveData action, exactly as you did in Step 2.
Your credit score check in Step 3 used an integration workflow. Build one yourself: connect an external API as a Data Source and call it from a process.
UI components
Learn all available form and display components
Business rules
Add complex logic with JavaScript or Python business rules
Error handling
Handle failures gracefully
FlowX Academy
Take structured courses with certifications
Last modified on September 30, 2026
Assistant
Responses are generated using AI and may contain mistakes.