Copy Data

This post is referring to Vahana 2 (beta version). To check the document for production, please go to vDesigner-v1.0

This task allows you to copy the data from one source to another. The source could be dynamic or static in nature. You can copy the data from the different sources as follows:

  • From one element to another element. For example:- copy the user name from one field to another
  • From one element to another attribute (entity store, work variable store, temp store) & vice versa. 
  • From one function to element or attribute. For example:- copy the user’s credit score to a text element or an attribute. 
  • A static value to an element or attribute.

Steps to Configure

  1. On the Event Configuration page, find the Task panel.
  2. In the Task panel, search and find the Copy Data task.
  3. Drag the Copy Data task from the Task panel to the Execution panel.
  4. In the Copy Data box, click the application tree icon (), the right panel displays two boxes: Copy From and Copy To.
  5. In the boxes, enter the value as described in the following table:
Property NameDescriptionMandatory
Reference NameThe reference name specifies the name of the task. In the Reference Name box, enter the name of the task.Yes
Copy Data – Copy fromThis property allows you to configure the source location from where the data is copied.
1. In the Copy Data From box, you can enter the:
–> Name of element to copy the data from the respective element
–> Name of function to copy the data from the respective function
–> Name of attribute/entity to copy the data from the respective entity


2. After you enter the element’s name or function’s name or entity’s/attribute’s name, select it.
a. If you select the element’s name, the Copy From box displays the data in the following syntax-based format:
–> this.elementObj(‘path’)

b. If you select the name of the business entity, the Copy From box displays the data in the following syntax-based format:
–> this.entityObj(‘path’)

c. If you select the name of the transient entity, the Copy From box displays the data in the following syntax-based format:
–> this.workVariable(‘path’)

d. If you select the name of the temporary entity, the Copy From box displays the data in the following syntax-based format:
–> this.tempObj(‘name’)



As described above, you can configure the source location intelligently by using the list of elements, functions or attributes (Entity store, Work Variable Store, Temp Store).
No
Copy Data- Copy Data ToThis property allows you to configure the location where the data is copied.

1. In the Copy To box, you can enter the:
–> Name of element
–> Name of function
–> Name of attribute/entity



2. After you enter the element’s name or function’s name or entity’s/attribute’s name, select it.
a. If you select the element’s name, the Copy To box displays the data in the following syntax-based format:
–> this.elementObj(‘path’)

b. If you select the name of the business entity, the Copy To box displays the data in the following syntax-based format:
–> this.entityObj(‘path’)

c. If you select the name of the transient entity, the Copy To box displays the data in the following syntax-based format:
–> this.workVariable(‘path’)

d. If you select the name of the temporary entity, the Copy To box displays the data in the following syntax-based format:
–> this.tempObj(‘name’)

you can configure the destination location intelligently through an autocomplete dropdown list of elements, functions and attributes (Entity store, Work Variable Store, Temp Store).
No
Business RuleThis property allows you to build a business rule related to the execution of the task. If the user’s action satisfies the condition in the business rule, the Copy Data task is executed.

To configure the business rule:
–> In the Business Rule box, click the application tree icon (), and the Business Rule panel opens.
–> In the Business Rule panel, click CreateNew to configure the new business rule.  
No
  1. After you configure the related properties, click Save to configure the Copy Data task.
Was this article helpful?
YesNo