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

Question

Question

Pass Input Parameters to Laserfiche Workflow Service Task

asked on July 9, 2014

I am creating a form that allows a user to update values in a SQL table.  Currently I am using the Save to Laserfiche service task to save their updated values to a temporary document, which triggers workflow to update the SQL table, and then workflow deletes that temp document.  Is there a way to pass these values directly to Workflow without having to use a temp document to store the values?  I would love it if we could pass Input Parameters into the workflow as part of this service task.

 

1 0

Answer

SELECTED ANSWER
replied on July 10, 2014

Yes, you can if you're using Workflow 9.1. On the workflow definition's properties, click View Workflow Properties from the right pane. In the dialog that opens, check the box labeled "Started by Laserfiche Forms".

 

That will make all the information about the Forms process that starts the workflow available as tokens so you'll be able to use them in conditions.

5 0

Replies

replied on July 9, 2014

I'd thought of that (use a throwback to Forms 9.0 when you had to do that) but I was hoping there was a way to pass it directly through the activity. Or maybe this functionality was coming in 9.2 since that should be out anytime (Q3)?

1 0
replied on July 9, 2014

Passing input parameters to Workflow is on the To-Do list for Forms, but not likely to happen for 9.2.

 

Using a service task to call into WF and then having WF call back rather than going the LF Document route is more efficient since you only have one call going from Forms to WF and one back. You don't have the extra activity caused by creating the document image and saving it to LF, then WF processing the notification, calling back into LF to get fields and deleting the doc.

0 0
replied on July 10, 2014

Agreed, that is definitely a much more efficient way to do it.  Thanks for the heads-up and hopefully passing input parameters will show up in a future Forms release.  Along these lines, I am using the Retrieve Forms Content activity to get the Forms fields by telling the activity to use The instance that started this workflow and to retrieve The most recent submission.  Is there a way to get the Form name prior to retrieving the content so that I can have a routing decision to handle each form differently?  Maybe a Global Token or something else I need to lookup before running the Retrieve Forms Content activity?

0 0
SELECTED ANSWER
replied on July 10, 2014

Yes, you can if you're using Workflow 9.1. On the workflow definition's properties, click View Workflow Properties from the right pane. In the dialog that opens, check the box labeled "Started by Laserfiche Forms".

 

That will make all the information about the Forms process that starts the workflow available as tokens so you'll be able to use them in conditions.

5 0
replied on July 10, 2014

THANK YOU THANK YOU THANK YOU. You just opened up a whole new world to me!!!

0 0
replied on July 9, 2014

Why not just use a Retrieve Form Content activity in your workflow to get the data from Forms directly? You can have Forms trigger the workflow with a Service task.

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

Sign in to reply to this post.