Creating an embedded task from the UI

The purpose of the following scenario is to show how to create an embedded task in the context of an example.

About this task

Tasks can either be an embedded task, or they can reference a task template.

For information about how to define a task template from the UI, see Creating and referencing a task template from the UI.

David is an HCL Universal Orchestrator user who needs to upgrade the Java version on the existing backup server named BK_server. To automate the process, David decides to create a workflow that contains an embedded task. David prefers to create an embedded task instead of referencing a task template because he only needs to use the task in that workflow.

To create an embedded task named UPGRADE_JAVA_VERSION inside the UPGRADE_JAVA workflow, perform the following steps:

Procedure

  1. Create a workflow named UPGRADE_JAVA and define general information about it.
    1. From the Blocks tab in the Graphical Designer page, drag a workflow and drop it into the workspace.
    2. In General information, in Folder, select a folder.
    3. In Workstation, select the existing workstation BK_server.
    4. In Name, type UPGRADE_JAVA.
  2. Create an embedded task named UPGRADE_JAVA_VERSION into the UPGRADE_JAVA workflow and define information about the task.
    1. From the Blocks tab in the Graphical Designer page, drag an executable task and drop it into the UPGRADE_JAVA workflow.
    2. In Name, type UPGRADE_JAVA_VERSION.
    3. Untoggle the Use job definition option.
    4. In Workstation, select BK_server.
    5. In Description, type Java upgrade to version 11.
    6. In Task, select Inline script from the drop-down menu.
    7. In Command text or script name, type apt install --only-upgrade openjdk-11-jre-headless -y.
  3. Click Deploy to deploy the workspace.

Results

You created an embedded task to upgrade the Java version on the backup server named BK_server.