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

Question

Question

Setting multiple variables in activity "Starting Variables Values" using "Invoke Business Process"

asked on December 2, 2016 Show version history

Hi,

I am trying to do the following:

1) Scan document via Quick Fields or Import Agent with OCR

2) Invoke Workflow and extract 9 discrete bits of information from the OCR text and store into tokens

3) Invoke Forms at the end of the Workflow populating the 9 variable values in Forms using the extracted token values in step 2) above

 

All components I am using are version 10.1 (update 2)

The Form opens but only populates the first token/variable, can you send multiple variables from the activity "Starting Variables Values" using "Invoke Business Process"; if so what is the syntax for sending multiples variables?

 

Thanks in advance.

 

Below is excerpt from the "Starting Variable Values" activity, all variables and values comma separated with no spaces:

Account_Number=%(tkn_Account_Number),Amount_Requested=%(tkn_Amount_Requested),Date_Requested=%(Date),Nominated_Approver=%(Initiator),Notes=%(tkn_Notes),Payment_Method=%(tkn_Payment_Method),Requestor_Name=%(Initiator),Total_Amount_Requested=%(tkn_Total_Amount_Requested)

1 0

Answer

SELECTED ANSWER
replied on December 2, 2016

I use this process all the time, what I do different is that I start each variables assignment on a new line as opposed to separating with commas.

2 0
replied on December 2, 2016

Thank you for your prompt reply

will try now!

0 0
replied on December 2, 2016

It works! Thank you ... 

I have a separate issue in that I have rules on hide/show so when an initiator starts a task they have to populate a valid account number before other parts of the form are visible. If workflow sends all the data, it opens the task and passes it to the approver but the form only shows that account number only. Looks like I need a separate starting Form for those triggered by Workflow ... you agree?

0 0
replied on December 2, 2016

I would have thought that the Rules would have still worked. Yes, the workaround would be to duplicate the initial form and just remove the rules for the one where Workflow passes the variables.

0 0
replied on December 2, 2016

Well they don't seem to ... I have to also now figure out how I an start the same BP using two forms ... :-)

 

0 0
replied on December 2, 2016

You can set the process initiator when Workflow starts a Forms process. So you could just use a valid user that will pass your validation.

0 0
replied on December 2, 2016

Thank you. I found where my issue was .... validation of an account number that is carried out by a lookup populates a results set into a variable that is hidden. I needed to populate that in Workflow also and I can now see the next stage with Form fully populated!

I will look into the process initiator.

Thank you!

 

0 0

Replies

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

Sign in to reply to this post.