This unit Describes:-
- What is Workflow and Workflow transaction.
- How Workflow transaction works.
1. What is Workflow and Workflow transaction?
Workflow is use to push data base on condition, and the condition bases on Interfaces.
Such as the Message that is belong to Account Interface will push into Account, and Message that is belong to Contact Interface, will push into Contact by Workflow
Workflow Transaction lets user 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 4 options in Runtime behavior and we can select any one of them according to our requirement :-
It is same as “Continue when an error occurred”.
2.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.
3. Stop when an error occurred:-
If we process messages and suppose we met with error on 2nd or 3rd message. We should stop there”, for that processing the code will be automatically stop the process, we don’t have to manually stop pushing the message.
4. Rollback when an error occurred:-
If we got some error while processing message like perform DML operation based on mapping and we get some error like missing required field value , missing ExtId value that we need to considered as error. When workflow message met an error it will immediately stop processing and rollback.
=> Please check picture given below:-
2. How to use it?
The procedure is given below :-
Pre requiste :-
Create two interfaces i,e Account and contact.
(As shown in picture given below)
*NOTE:- We can select Runtime behavior as per our requirement.
3. Do mapping for both Account and Contact and check Istructure on Interface related page:-
A. Account’s Istructure:-
B. Contact’s Istructure:-
4. Create Workflow :-
- Click on workflow on integration detail page.
- Click on New IWorkflow.
A. Creating Wf1 with condition BillingCity= NewYork .
B. Creating Wf2 with condition BillingCountry= USA .
C. Creating Wf2 with condition NOT(ISNUll(FirstName)).
5. Push data using manual load:-
6. Check on message board:-