Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Context schema allows you to map Context Variable with any element of schema.

This section explains you how to use context schema to map context variable. 
High level steps to use context schema are as follows:

Create Context Schema

First of all you need to create context schema. Context schema contains name of the context variable that you want to map to other element. While creating context schema, you can create context variables or you can import it from the process flow within which you want to use this mapping activity. 
 

Steps to create Context Schema

  1. Go to Open and select Create Context Schema.


     

  2. The Create Context Schema Dialog window is displayed.



  3. To add a context variable click Add Row and enter the name of the variable.
  4. Repeat the same steps to create other variables.

  5. You can also import the context variables of the process flow in which you want to use this mapping activity. To import context variables from process flow, click Import From Process Flow.

  6. Import Context Variable dialog box is displayed.



  7. Select the process flow, from which you want to import context variables and click Import.
  8. Click Save.

Load Context Variable

Once you have created the context schema, you need to load it at source or destination end depending on your need. 
 

Steps to Load Context Schema

  1. To load the Context Schema at source or destination end, click Open and select Load Schema.The Select Schema dialog box is displayed.

  2. Select the Context as the schema type. The variables on Context schema are loaded on left panel.

  3. Enable the respective check box to load the Source and/or Destination schema.
  4. Click Load.

Map Schema Elements

Once you load the context schema, you can map its variables to elements of other schema.

Modify Streaming Properties of Mapping Activity

Once you created the mapping activity using context schema you need to changes its streaming properties while creating process flow using this mapping activity. 
If Context Schema is loaded at source side then there is no need to provide the source (dummy source) stream to the Mapping activity. Similarly if Context schema is loaded at destination side then Mapping activity will not generate any output stream, so there is no need to attach dummy target. To achieve this Generate Stream and Consume Stream property has been added to Data Mapper activity in the Process Designer. User can disable these properties based on whether Context schema is loaded at source or destination side. 
 

Steps to disable input and output stream of mapping activity

  1. While designing the process flow, double click the mapping activity that you have created using context schema definition. Properties of the mapping activity are displayed.

  2. Change the value of Consume Stream or Generate Stream property to false.

    If Context Schema is used at source side, then at run time the actual value of these context variables will be used in the Data mapping. Similarly if Context Schema is used at target side then the output of the data mapping will be parsed and corresponding new value of these context variables will be set.

 

  • No labels