Custom Java Trigger API for IPA

Sort:
You are not authorized to post a reply.
Author
Messages
Kyle Jorgensen
Veteran Member
Posts: 122
Veteran Member

    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
    Advanced Member
    Posts: 20
    Advanced Member
      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
      Veteran Member
      Posts: 122
      Veteran Member
        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
        Advanced Member
        Posts: 20
        Advanced Member

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

          Chris

          Kyle Jorgensen
          Veteran Member
          Posts: 122
          Veteran Member

            Nice!  Good luck!

            You are not authorized to post a reply.