Tutorial

  1. Home
  2. Docs
  3. Tutorial
  4. 12. What is the Workflow transaction and how to use it?

12. What is the Workflow transaction and how to use it?

Learning Objectives:-

This unit Describes:-

  • What is Workflow and Workflow transaction?
  • How Workflow transaction works.

What is Workflow and Workflow transaction?

Workflow is use 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 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 4 options in Runtime behavior and we can select any one of them according to our requirement:-           

  • None:- 

 It is the same as „Continue when an error occurred“.

  • 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 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:-

 

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)

Note
We can select Runtime behavior as per our requirement.

Do mapping for both Account and Contact and check Istructure on Interface related page:-

  • 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:-

 

Was this article helpful to you? Yes No

How can we help?