Triggering PFI from Java

 6 Replies
 0 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
David Burnham
Basic Member Send Private Message
Posts: 9
Basic Member

Does anyone know if there is a restriction on the number of variables you can pass to a flow when you are triggering the flow from a custom java program?

 

Thanks!

David Williams
Veteran Member Send Private Message
Posts: 1127
Veteran Member
You should only be limited to the number of variables on the Service.
David Williams
Deleted User
New Member Send Private Message
Posts: 0
New Member

No, there is no limit.

When you create a COBOL trigger within Lawson it allows you to do unlimited, you just called the add variable api for each 10 variables you want to add before calling the Release api.

calling the package com.lawson.bpm.eai.trigger should work the same way

You can have as many variables as you want and they don't even have to be defined in the Service Variable definition, that is used only by the Designer tool to show what workunit variables are available in dropdowns for Assign's etc. Does not mean you can not reference or use a workunit variable you added to a trigger but did not add to the Service Variable definition.

Keep in mind there is some overhead to having workunit variables.  They are stored in a LOGAN table WFACTVAR and is updated with a record after EACH node is called within a flow, so if you have 20 workunit variables and the flow processes 15 nodes, that is 300 entries in that table for one execution of the flow.  Any variables you add in the start node also write to this table.

 

Shane Jones
Veteran Member Send Private Message
Posts: 460
Veteran Member
How about when using "trigger.do" - Is there a limit to the number of variables. I am not able to get more than 15 variables into the flow when I use

http:// <> /bpm/trigger.do?method=Start&triggerType=ProcessAsync&user=lawson&triggerName=job-rec&workTitle=testallvariables&varName%5B0%5D=sj0&varValue%5B0%5D=no0&varName%5B1%5D=sj1&varValue%5B1%5D=no1&varName%5B2%5D=sj2&varValue%5B2%5D=no2&varName%5B3%5D=sj3&varValue%5B3%5D=no3&varName%5B4%5D=sj4&varValue%5B4%5D=no4&varName%5B5%5D=sj5&varValue%5B5%5D=no5&varName%5B6%5D=sj6&varValue%5B6%5D=no6&varName%5B7%5D=sj7&varValue%5B7%5D=no7&varName%5B8%5D=sj8&varValue%5B8%5D=no8&varName%5B9%5D=sj9&varValue%5B9%5D=no9&varName%5B10%5D=sj10&varValue%5B10%5D=no10&varName%5B11%5D=sj11&varValue%5B11%5D=no11&varName%5B12%5D=sj12&varValue%5B12%5D=no12&varName%5B13%5D=sj13&varValue%5B13%5D=no13&varName%5B14%5D=sj14&varValue%5B14%5D=no14&varName%5B15%5D=sj15&varValue%5B15%5D=no15

(Since the first variable is 0 I have to remove varName%5B15 ..... from the end of the string to get it to work.)

I tried using wfwk and it did not work either ...
Shane Jones
Tools: HR, Payroll, Benefits, PFI, Smart Office, BSI, Portal and Self-Service
Systems: Lawson, Open Hire, Kronos, Crystal Reporting, SumTotal Learning
** Teach others to fish...
Deleted User
New Member Send Private Message
Posts: 0
New Member
Does any one have sample java code to trigger PFI?If so please share with me.
Robert Spurr
Veteran Member Send Private Message
Posts: 130
Veteran Member
Here is a sample trigger call made using WFWK:

var s = portalWnd.AGSPath + "?_PDL=" + strPDL +
"&_TKN=WFWK.1&_EVT=ADD&_RTN=DATA&_LFN=ALL&_TDS=IGNORE" +
"&FC=ADD&SERVICE=PO30E.1_R&WORK-TITLE=Tech Email Heat" +
"&CRITERION-1=" + pCompany +
"&VARIABLE-NAMEr0=COMPANY" +
"&VARIABLE-VALUEr0=" + pCompany +
"&VARIABLE-NAMEr1=PO" +
"&VARIABLE-VALUEr1=" + pPoNbr +
"&VARIABLE-NAMEr2=POCODE" +
"&VARIABLE-VALUEr2=" + pPoCode +
"&VARIABLE-NAMEr3=POREL" +
"&VARIABLE-VALUEr3=" + pPoRel +
"&VARIABLE-NAMEr4=RECEIVER" +
"&VARIABLE-VALUEr4=" + pReceiver +
"&_DELIM=%09&_OUT=XML&_EOT=TRUE";

portalWnd.httpRequest(s);

David Williams
Veteran Member Send Private Message
Posts: 1127
Veteran Member
In the Infor Process Designer Help guide, there is sample code of using Java to trigger Infor Process Automation. I don't know if there is anything for ProcessFlow.
David Williams