Arguments – Purpose and use

An Argument is simply a variable that can store a value. You can create an argument in the Argument section of the main Designer panel.

But remember, they are not limited to variables. An argument has a larger scope than a variable and is used to pass values between different workflows. You might be wondering why we need this. Suppose we have a big project to build; we break down the project into different workflows because smaller workflows can be easily tested separately. It is very easy to build smaller workflows and combine them, thus turning them into the real solution of the project.

These Arguments are used for interacting with different workflows by exchanging data between them. That is why the direction property is associated with Arguments. We can choose the direction on the basis of our requirement—either giving the value to some workflow or receiving the value from another workflow.

We can easily create arguments in the Arguments panel. We can also specify the direction:

  • In: When we have to receive the value from another workflow.
  • Out: This is the current value if we have to send the value to a workflow.
  • In/Out: This specifies both; it can take or receive the value.
  • Property: This specifies that it is not being used currently:
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.137.192.3