Procedure
-
From Talend Studio,
open the workflow Product_Product in the BPM
perspective.
-
Click the task Price Request.
-
From the Execution view, select the
Contract tab, and add one input of TEXT type:
c_productPrice, which will be used to receive data
from the form designer.
-
Go to the Operations tab, and click
Add to add one new operation.
-
Select mdm_context from the variable list.
-
Click the operator link to open the Select operator
dialog box and select Use a Java method from the
Operation type list.
-
Select setValue and click
OK.
-
Click the Edit button and add the script
"Product/Price#" + c_productPrice, so that the
product price in Talend MDM will be
updated with the new value submitted by the form user and received by the
contract variable c_productPrice.