PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 02/08/2018 1:35 PM by  Kyle Jorgensen
Custom Java Trigger API for IPA
 4 Replies
Sort:
You are not authorized to post a reply.
Author Messages
Kyle Jorgensen
Programmer/Analyst
WoodmenLife
Veteran Member
(314 points)
Veteran Member
Posts:116


Send Message:

--
05/23/2017 2:22 PM

    We are experimenting with creating our own custom java trigger API for Infor Process Automation (as described in the "Creating a Custom Java Trigger API for Infor Process Automation" section of the Landmark InfoCenter).

    We've been able to use the brief example in the InfoCenter to create a proof-of-concept custom java trigger API, but now we want to take it to the next level. We want to be able to set and pass the flow name/value pairs, set category keys and category values as well as the inputData variable.  We then want to be able to get back from the flow things that are returned via the "Return" node.

    "Next level" documentation on how to do this isn't available (that I can find, anyway).

    Where can I get documentation describing the capabilities of the LPSSession, ProcessRequest & ProcessResponse classes used to establish a grid session, start a flow and handle its response?  The javadoc documentation for these classes would be great, but you need access to the source code to generate the javadoc.

    Chris
    Analyst
    UCHealth
    Advanced Member
    (56 points)
    Advanced Member
    Posts:20


    Send Message:

    --
    10/20/2017 11:51 AM
    Did you ever find a way to pass variables to the flow from the java? I too am needing to get an API post to us from an external vendor and then trigger a flow to update Infor. We are implementing TA and we are receiving updates from 3rd party vendors like Skill Survey who will post updates back to us...would be great to receive the post on an external facing site and then trigger the flow and pass the variables to the flow! Any help is appreciated! Chris
    Kyle Jorgensen
    Programmer/Analyst
    WoodmenLife
    Veteran Member
    (314 points)
    Veteran Member
    Posts:116


    Send Message:

    --
    10/20/2017 4:31 PM
    We specifically asked Infor for documentation regarding the jar files they reference for creating a custom java trigger.
    They explained that that documentation is proprietary because those jar files are the same ones they use in IPA to make it work.
    Yes, we finally did figure things out but only after importing those jar files into our java IDE and reverse compiling the class files (a feature of our IDE).

    There are a bunch of methods in all of those jar files, but the ones that do the 'heavy lifting' for a custom java trigger are the ones they use in the brief java example in their InfoCenter (however, the "LPSSession.runRequest" method that takes two parameters is deprecated). Also, you can pass input data by instantiating a ProcessInputData object and then using it via the ProcessRequest.setProcessInputData() method.

    It took a lot of trial and experimentation, but we're on our way with writing our own services in our own corporate middle-ware stack that can start IPA flows and use their results.
    Chris
    Analyst
    UCHealth
    Advanced Member
    (56 points)
    Advanced Member
    Posts:20


    Send Message:

    --
    02/08/2018 7:48 AM

    Meant to reply months ago - thank you for your insight Kyle, we are on our way to do the same thing!

    Chris

    Kyle Jorgensen
    Programmer/Analyst
    WoodmenLife
    Veteran Member
    (314 points)
    Veteran Member
    Posts:116


    Send Message:

    --
    02/08/2018 1:35 PM

    Nice!  Good luck!

    You are not authorized to post a reply.