How to Use Process Objects to Assign Values to Fields in Cloud Application Integration
Process objects are groups of structured data that can be used in business processes. They can be defined as standalone objects or within a service connector. Process objects help you to access and manipulate data more efficiently and reuse common objects in multiple processes.
In this article, we will show you how to use process objects to assign values to fields in Cloud Application Integration. We will use the example of an Assignment step, which is a step that sets a value to a field. You can use an Assignment step to assign values from different sources, such as content, screen fields, formulas, or specific dates.
To create an Assignment step, follow these steps:
Click a process, and then select Assignment from the Design canvas.
From the Assignments properties panel, click the Add icon to assign Name and Assignment values.
To add a field, click the Add icon, and then add the following information for each field:
Name: This is the fully-qualified field name. The name can contain only alphanumeric characters, underscores (_), spaces, and Unicode characters. You can select a field name from the list of fields you defined under Start Fields.
Assignments: This is the source from which the field takes values. The fields you see depend on the data type you defined under Start Properties Input Fields or Temporary Fields. For example, if you define the data type in the Input Fields as Date or Time, you can choose from Specific date, Days from today, Days before/after, Screen Field, or Formula. If you define the data type as Integer or Text, you can choose from Content, Screen Field, or Formula.
The following image shows an Assignment step:
For more information about process objects and assignment steps, see Designing Process Objects and Assignment Step in the Informatica documentation.
In this example, we will use a process object to assign values to fields that store customer information. We will create a standalone process object called Customer, which has the following fields: Name, Email, Phone, and Address. We will also create a process that uses an Assignment step to assign values to these fields from a screen field.
To create the Customer process object, follow these steps:
From the Design tab, click Process Objects.
Click New Process Object.
Enter Customer as the name of the process object and click Create.
Click Add Field and enter Name as the field name. Select Text as the data type and click OK.
Repeat step 4 for the other fields: Email, Phone, and Address.
Click Save to save the process object.
The following image shows the Customer process object:
To create the process that uses the Customer process object, follow these steps:
From the Design tab, click Processes.
Click New Process.
Enter CustomerInfo as the name of the process and click Create.
From the Start Properties panel, click Add Field under Input Fields.
Select Screen Field as the data type and enter CustomerScreen as the field name. Click OK.
Click Add Field under Temporary Fields.
Select Customer as the data type and enter CustomerTemp as the field name. Click OK.
Drag an Assignment step from the palette to the Design canvas.
From the Assignments properties panel, click Add Field under Name.
Select CustomerTemp.Name from the list of fields and click OK.
Select Screen Field from the list of options under Assignments.
Select CustomerScreen.Name from the list of screen fields and click OK.
Repeat steps 9 to 12 for the other fields: Email, Phone, and Address.
Click Save to save the process.
The following image shows the process that uses the Customer process object:
This process assigns values to the fields of the CustomerTemp temporary field from the CustomerScreen screen field. You can use this process to capture customer information from a user interface and store it in a structured way. You can also use this process to pass customer information to other steps or processes that require it. ec8f644aee