Creating Record Via Task

Workflows section. Data administrator interface

This article describes how to set up a workflow that can be used to create records via tasks.

To create and configure a process:

  1. Implement a service task. To do this, implement the com.unidata.mdm.workflow.core.type.delegate.TaskDelegate interface.
  2. Go to the Libraries section. Load the implemented service task as a Jar library.
  3. Go to the “Workflows” section.
  4. Enable a draft mode by clicking “Draft”. Create a new draft or open an existing one.
  5. In the “Executors” tab, add a service task from the loaded library.
  6. In the “Workflows” tab, create a new process (creation method: Fill manually).
    • The process must have the following properties enabled: executable, only for manual run.
  7. Create the required diagram of the workflow.
    • At the required process step, add “Service task” element (Figure 1).
    • In the Java class field, specify the loaded class.
  8. Finish setting up the workflow.
  9. Publish the draft.

To create a record via the process:

  1. Go to the “Tasks” section.
  2. Run the process manually
  3. Specify the required process from the list.
  4. Enter the data. For example, the name of the organization (Figure 2).
  5. The action will create a new workflow.
  6. Go through all the process steps, which were specified in the diagram.
  7. After the final step is approved, a new record will be created.

Workflow diagram and the "Service task" element

Figure 1 - Workflow diagram and the “Service task” element

Creating record via task

Figure 2 - Creating record via task.