Orchestrator

Create a Workflow

This is a sample use case for creating a workflow and covers most aspects of the procedure.

To create a Strings workflow in Orchestrator that creates a job when a file is uploaded to a project and contains the keys affected by the upload, follow these steps:

  1. (Optional) Create a working folder.

    1. From the Create menu, select Folder.

      The New folder window opens.

    2. Provide a name for the folder and click Save.

      The folder is listed on the Workflows page.

    3. Click the folder name to open it.

  2. Create a workflow.

    1. From the Create menu, select Workflow.

      The New Workflow window opens.

      Optionally attach an existing .JSON file to automatically create a workflow. The description will be taken from the file.

    2. Provide a Name and Description for the new workflow.

    3. Click Save.

      The new workflow is listed on the Workflows page.

  3. Define a workflow.

    1. Click on the workflow name to open it.

      The workflow opens in the Editor tab.

    2. Provide an event that the workflow should be listening for. For this sample procedure, the uploads:create event will be used and is the event that occurs once a file has been uploaded and processed in a Strings project.

      From the Events tab on the Workflow blocks window, search for the word uploads.

      Listed events are both TMS and Strings webhooks.

    3. Drag and drop the uploads:create block on to the first workflow step.

      The step is created and details are presented in the Overview tab on the right of the window.

      The name of the block can be changed to something in normal language that describes what the block does.

    4. Provide an action to the workflow. For this sample procedure the Fetch access tokens action will be used for authentication (it fetches access tokens during runtime).

      From the Actions tab on the Workflow blocks window, search for phrase.

      A list of events is presented in the tab.

    5. Drag and drop the Fetch access tokens action block below the uploads:create trigger to connect them.

    6. After authentication, a function can be provided. For this sample procedure, locales from a Strings project will be listed.

      From the Actions tab on the Workflow blocks window, search for list locales.

      A list of events is presented in the tab.

    7. Drag and drop the List locales action block below the Fetch access tokens action to connect them.

    8. The list of locales will need to be filtered for the purposes of the example. The Transform JSON with jq action will be used for this.

      From the Actions tab on the Workflow blocks window, search for Transform JSON with jq.

    9. Drag and drop the Transform JSON with jq action block below the List locales action to connect them.

    10. A job can now be created with the results of the workflow. For the purposes of the example, a Strings job will be created.

      From the Actions tab on the Workflow blocks window, search for create a job.

    11. Drag and drop the Create a job action block below the Transform JSON with jq action to connect them.

    12. Every action can have conditions defined with logical AND and OR statements to create more outputs. For the purposes of the example, two target locales will result from the Create a job action.

      Drag and drop the Transform JSON with jq action block below the Create a job action to connect them.

      Drag and drop another Transform JSON with jq action block onto the Create a job action to add another branch.

      These actions will run in parallel.

    13. Dependant on the conditions set in the Create a job action, a locale will be created based on the result of the Transform JSON with jq action.

      Drag and drop a Create a job locale action block below each Transform JSON with jq action to connect them.

    14. Once a job locale is created, the job can be started.

      Drag and drop the Start a job action block below a Create a job action to connect them. From the second Create a job action, drag the connector dot to the Start a job action.

Was this article helpful?

Sorry about that! In what way was it not helpful?

The article didn’t address my problem.
I couldn’t understand the article.
The feature doesn’t do what I need.
Other reason.

Note that feedback is provided anonymously so we aren't able to reply to questions.
If you'd like to ask a question, submit a request to our Support team.
Thank you for your feedback.