This is a sample use case for creating a workflow and covers most aspects of the procedure.
Workflow templates give more examples of different kinds of workflows.
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:
-
(Optional) Create a working folder.
-
From the Folder.
menu, selectThe
window opens. -
Provide a name for the folder and click Save.
The folder is listed on the
page. -
Click the folder name to open it.
-
-
Create a workflow.
-
From the Workflow.
menu, selectThe
window opens.Optionally attach an existing .JSON file to automatically create a workflow. The description will be taken from the file.
-
Provide a
and for the new workflow. -
Click Save.
The new workflow is listed on the
page.
Note
A library of common templates is also available for creating workflows.
-
-
Define a workflow.
-
Click on the workflow name to open it.
The workflow opens in the
tab. -
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 uploads.
tab on the window, search for the wordListed events are both TMS and Strings webhooks.
-
Drag and drop the
uploads:create
block on to the first workflow step.The step is created and details are presented in the
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.
-
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 phrase.
tab on the window, search forA list of events is presented in the tab.
-
Drag and drop the
Fetch access tokens
action block below theuploads:create
trigger to connect them. -
After authentication, a function can be provided. For this sample procedure, locales from a Strings project will be listed.
From the list locales.
tab on the window, search forA list of events is presented in the tab.
-
Drag and drop the
List locales
action block below theFetch access tokens
action to connect them. -
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 Transform JSON with jq.
tab on the window, search for -
Drag and drop the
Transform JSON with jq
action block below theList locales
action to connect them. -
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 create a job.
tab on the window, search for -
Drag and drop the
Create a job
action block below theTransform JSON with jq
action to connect them. -
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 theCreate a job
action to connect them.Drag and drop another
Transform JSON with jq
action block onto theCreate a job
action to add another branch.These actions will run in parallel.
-
Dependant on the conditions set in the
Create a job
action, a locale will be created based on the result of theTransform JSON with jq
action.Drag and drop a
Add a target locale to a job
action block below eachTransform JSON with jq
action to connect them. -
Once a job locale is created, the job can be started.
Drag and drop the
Start a job
action block below aCreate a job
action to connect them. From the secondCreate a job
action, drag the connector dot to theStart a job
action.
-