You are viewing limited content. For full access, please sign in.

Question

Question

Can you start a workflow through the API

asked on September 30 Show version history

we are in the process of automating importing metadata into our WMS. There's a workflow that was created to process the document and create metadata. We then use an iPaaS software called Celigo to pull that metadata and turn it into a 940 through the API connection. 

 

What I want to know is whether it is possible to call to start the Laserfiche Workflow through the API so that I can control the run times in one place. If so, then I'd like any documentation someone could provide to accomplish this. If not, then I'll have to schedule the workflow in Laserfiche and line that up with the flow in Celigo. 

 

Thank you for any assistance you can provide.

0 0

Replies

replied on September 30

Laserfiche Cloud does not provide an API for starting workflows.

0 0
replied on September 30

As Miruna noted, there is not currently an API for starting Workflows in Cloud. It's a common feature request we're aware of though.

One workaround we currently use for scenarios like these is to leverage the Repository API and Starting Rules. As you can't invoke the workflow directly through an API, instead:

  1. Invoke the Repository API to create a new blank document entry in a "hidden" folder only visible to the Process Automation user account that is either named with or assigned metadata values necessary as Workflow starting parameters.
  2. Have a Starting Rule that triggers on document creation within that "hidden" folder to kick off your workflow.
  3. Have the workflow read whatever parameters it needs from the entry name and/or metadata at the beginning, and end by deleting the blank entry.

A bit roundabout, but it gets the job done for now.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.