CreateWorkItemFromJson

The CreateWorkItemFromJson component enables the user to create new WorkItem inside the Queue of a process and can also extract the JSON properties. Before using the CreateWorkItemFromJson component, user must establish a connection to the Orchestrator using the SetConfig component.

Screenshot

Ports

The CreateWorkItemFromJson component exposes the Control In, Control Out, and Data Out ports by default.

Port Description
Control In Must be connected to the Control Out port of one or more components.
Control Out Must be connected to the Control In port of any other component.
Data Out The CreateWorkItemFromJson component exposes the following Data Outputs:

IsNameExists: Return the value as true or false based on the existence of the specified QueueName.

Datatype should be String.

Return: It returns the value as true or false with Boolean Data Type, based on whether the QueueItem is successfully created or not.

Properties

For CreateWorkItemFromJson component - User can edit the following properties, in the properties window.

Property Description
Delay After Execution Specifies the wait time (in seconds) after the action is executed.
Delay Before Execution Specifies the wait time (in seconds) before the action is executed.
Enable Timeout Allows users to enable timeout for the component
Timeout Allows users to define a timeout for the component

Note

To search for a specific property user can use the filter available in the properties window.

Example

Let us consider an example of the CreateWorkItemFromJson component.

Screenshot

To create the workitem inside the queue:

  1. In the Toolbox, expand Orchestrator and then expand Common.

  2. Drag the SetConfig component and drop it on the Design surface.

  3. In the Toolbox, expand Orchestrator and then expand QUEUES.

  4. Drag the SetQueueName component and drop it on the Design surface.

  5. Drag the CreateWorkItemFromJson component and drop it on the Design surface.

  6. Enter the URL, RoboID and ProcessID inside the SetConfig component and QueueName inside the SetQueueName component.

    Note

    To extract the value of added property(ies), double click on 'CreateWorkItemFromJson' header and add property(ies) name on 'SET PROPERTY CONFIGURATION' pop up.

  7. Connect Control Out port of SetQueueName component to Control In port of CreateWorkItemFromJson component to add QueueItem into the respective queue.

  8. In the toolbar, click Run.