Configure the Flow
Create the flow diagram to implement the logic.
Last updated
Create the flow diagram to implement the logic.
Last updated
Now let us create the actual microflow logic in the Flow Diagram
1. Drag Start node under EVENT tab and drop in the diagram panel
2. Drag Database node under ACTIVITY tab and drop in the space next to start node
3. Double click on the database node and the configuration panel will be shown at the bottom of the screen.
In tab General enter ''RetrieveUserBenefits"
In the tab Business Object click on "Add Row" button For
BenefitBO check input and for BenefitBOout_Avalant check output
NOTE: From Version 4.0.0.19 the parameter mapping is done automatically between the parameters of same BO. User need to manually map only if you need to map to a different business object for input or output. If you have different input and output parameters, map them as given below.
Click "Open Mapping Parameter"
Click on the line between Input and Mapping
Link the parameters for input
Click on the line between Mapping and Output
Link the parameters for output
Now click on Done to close the mapping screen.
Open tab Database Parameter
Choose Connection Type as JNDI
Enter "jdbc/application" in JNDI Name
Choose "Select" for Command Type
Enter "SELECT id, travel_date, project_name, description, amount, status, benefit_type, username FROM oneweb_benefit WHERE benefit_type = ? AND username = ?" in Command
Click "Open Mapping Parameter"
Click on the line between Input and Mapping
Click on DatabaseDummyObject and choose Add Parameter icon
Add the parameters "benefit_type" & "username" and click Submit
Link the activity parameters for input
Click on the line between Mapping and Output
Click on DatabaseDummyObject and choose Add Parameter icon
Add the parameters for output and click Submit
Link the activity parameters for output
Now click on Done to close the mapping screen
Click Done on the database node configuration panel to close the panel
4. Drag END node under EVENT tab and drop-in space next to the database node
5. Drag line and connect the nodes 6. Click "Save"
Now you have your first Microflow service ready for execution
Users can use the validate option to see if all the configurations are complete