powerflc:workflows

Workflows

Workflows consist of two components: the Workflow Configuration within the Configuration Manager and the according powerJobs Processor job.

Before setting up the Configuration Manager, the proper configuration of the Fusion Lifecycle Tenant is required. Afterwards the Tenant Settings can be configured in the Vault Client to allow powerFLC Workflows to establish a connection to Fusion 360 Manage.

In order to give workflows the possibility to perform their actions with the correct Fusion Lifecycle user, the e-mail address of the Vault user that submitted the according job must be configured in the Vault User profile:

This same email address must be present for the Fusion Lifecycle User:


PowerFLC is delivered with two sample workflow jobs Transfer Item BOMs and Change Management. Their purpose is to help people getting started with creating their own workflows based on powerJobs Processor.
The samples cover the most common scenarios for exchanging data between Vault and Fusion 360 Manage and is highly customizable.
We recommend to copy the sample workflow script and create your own Custom Workflow job, when additional customizations are preferred.

Make sure to start the powerJobs.exe at least once to make sure the workflow job types are synchronized and can be processed by powerJobs Processor.

Following powerShell script modules are delivered with powerFLC and installed in the powerJobs Processor module directory:

  • coolOrange.powerFLC.Workflows.MappingFunctions.psm1
  • coolOrange.powerFLC.Workflows.Common.psm1
  • coolOrange.powerFLC.Workflows.Extensions.psm1
  • coolOrange.powerFLC.Workflows.Async.psm1

coolOrange.powerFLC.Workflows.Common.psm1

Contains functions to simplify the workflow jobs.
Important functionalities:

  • Provides the $tenant variable that contains tenant connection information.
  • Provides the $workflow variable which supplies the configuration of the workflow associated with the currently executing job.

coolOrange.powerFLC.Workflows.MappingFunctions.psm1

Contains the functions that are used in the Field Mappings dialog.

In order to execute a Workflow Job on Vault lifecycle changes, the according Vault lifecycle state transition must be extended with the Job Type matching the “Workflow Name”.
See the delivered samples Sample.TransferItemBOMs and Sample.SyncChangeOrders which become executed after changing the state of Vault entities.

Alternative possibilities for queueing jobs automatically are e.g. within a custom powerEvents script by using the Add-VaultJob cmdlet or on specific Intervals.