Learning Objectives:-
This unit Describes:-
- What is Workflow and Workflow transaction?
- How Workflow transaction works.
What is Workflow and Workflow transaction? #
Workflow is used to push the database on the condition, and the condition bases on Interfaces.
Such as the Message that belongs to Account Interface will push into Account, and the Message that belongs to Contact Interface will push into Contact by Workflow.
Workflow Transaction lets users automate standard/Custom internal procedures and processes to save time across our SKYVVA App. A workflow transaction is the main container for a set of workflow instructions.
We can see 3 options in Runtime behavior and we can select any one of them according to our requirement:- #
- Continue when an error occurred:-
It is a default option if we process messages and suppose we met with error on 2nd or 3rd message. The other message will continue to process.
- Stop when an error occurred:-
If we process messages and suppose we met with error on the 2nd or 3rd message. We should stop there”, for that processing the code will automatically stop the process, we don’t have to manually stop pushing the message.
- Rollback when an error occurred:-
If we got some error while processing a message like perform DML operation based on mapping and we get some error like missing the required field value, missing ExtId value that we need to considered as error. When a workflow message met an error it will immediately stop processing and rollback.
Please check the picture given below:- #
How to use it? #
The procedure is given below:-
Pre-requisite:-
- Create Integration.
- Create two interfaces i,e Account and contact.
(As shown in the picture given below) #
#
#
- Account’s Istructure:–
- Contact’s Istructure:-
Create Workflow:- #
- Click on the workflow on the integration detail page.
- Click on New IWorkflow.
- Creating Wf1 with condition BillingCity= NewYork.
- Creating Wf2 with condition BillingCountry= USA.
- Creating Wf2 with condition NOT(ISNUll(FirstName)).
- Push data using manual load:-
Check on message board:- #