Triggering a service using Java calls
You can specify these Java calls in an M3 application to trigger a Infor Process Automation process:
| Purpose | Call |
|---|---|
| Initialize the trigger object | cPFIAsyncTrigger2 trigger = new cPFIAsyncTrigger-2(this); |
| Set the trigger name | trigger.setFlow("fromM3LPA"); |
| Add optional variables that should be available in the process in Infor Process Automation |
trigger.addVariable("PRM_CONO", PHEAD.getCONO()); trigger.addVariable("V1", "For Free Usage"); |
| Set criteria to be used for launching Infor Process Automation processes. |
trigger.setCriteria1("C1"); trigger.setCriteria1("C2"); trigger.setCriteria1("C3"); |
| Trigger the service | int ret = trigger.fire(); |