PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 04/11/2017 2:58 PM by  charliewilliam
Processflow Trigger
 14 Replies
Sort:
You are not authorized to post a reply.
Author Messages
brainet
Private
Private
Basic Member
(48 points)
Basic Member
Posts:18


Send Message:

--
03/07/2016 3:55 PM

    I have found in the process flow documentation that you can trigger a process or service with an HTTP call. I am using IPA on a landmark server. The documentation gives this as an example .

     http://ipa.example.com:8080/bpm/tri...ger%20Test

    I have tried all kinds of combination but keep getting a error saying it can not find the object.. 404 error. Has anyone had success setoff a trigger with a HTTP call?

    Thanks for any help.

     

    RandyM
    IT Software Support
    Life-Science Innovations
    Basic Member
    (27 points)
    Basic Member
    Posts:9


    Send Message:

    --
    03/07/2016 4:20 PM
    I was able to get this working. we us https. so I was able to get it working using:

    https://yourlandmarkserver.com/bpm/...tle=Manual

    If you have a different DataArea than PROD, use yours. In case you haven't done this yet, you need to set up a service that references the process. Then setup a trigger that references the service.
    Terry P
    Private
    Private
    Veteran Member
    (612 points)
    Veteran Member
    Posts:234


    Send Message:

    --
    03/07/2016 4:29 PM
    Listed below is an example from within Design Studio custom form:


    // new format for Landmark Triggers
    s = "https://yourservername/bpm/trigger?triggerType=ServiceAsync"
    s += "&triggerName=" + "PO Approval"
    s += "&dataArea=" + strPDL
    s += "&workTitle=" + "PO " + trimString(lawForm.getDataValue("PCR-PO-NUMBER") + vWorkTitle + " needs approval")
    s += "&varName\[0\]=" + "PCR_COMPANY" + "&varValue\[0\]=" + "2082"
    s += "&varName\[1\]=" + "PCR_PO_NUMBER" + "&varValue\[1\]=" + trimString(lawForm.getDataValue("PCR-PO-NUMBER"))
    s += "&varName\[2\]=" + "PO_NUMBER" + "&varValue\[2\]=" + trimString(lawForm.getDataValue("PCR-PO-NUMBER"))

    portalWnd.httpRequest(s);
    Woozy
    Private
    Private
    Veteran Member
    (3478 points)
    Veteran Member
    Posts:704


    Send Message:

    --
    03/07/2016 4:36 PM
    If you want to skip the service setup and run the flow via process trigger, this works too:

    https://yourlandmarkserver.com{:port}/bpm/trigger?triggerType=ProcessAsync&triggerName=YourFlowName&dataArea=PROD&workTitle=Whatever

    Of course, this only works if your flow doesn't require input variables from a service.

    By the way...thanks for this question! We've been doing this the "hard way" for 6 years via a script on the server. Using a URL would make this way easier for us. Heavens Forbid that we actually read the documentation to learn about stuff like this... {Ugh}
    Kelly Meade
    J. R. Simplot Company
    Boise, ID
    Ethan
    Senior Programmer Analyst
    Kaweah Delta Health Care District
    Advanced Member
    (56 points)
    Advanced Member
    Posts:22


    Send Message:

    --
    03/07/2016 4:49 PM
    brainet, I didn't realize you could call a flow from an HTTP call. Cool feature. Thanks for bringing it up.

    Woozy, you are only supposed to read the documentation when something breaks!
    JimY
    Private
    Private
    Veteran Member
    (1132 points)
    Veteran Member
    Posts:406


    Send Message:

    --
    03/08/2016 6:50 AM
    Thank you woozy for the example. When I run that in the browser it completes successfully and displays xml output in the browser. How do you execute the URL and how do you handle the xml? Can you provide some examples? Thank you again.
    brainet
    Private
    Private
    Basic Member
    (48 points)
    Basic Member
    Posts:18


    Send Message:

    --
    03/08/2016 7:48 AM
    Thanks RandyM and everyone one else. I have been working with support for several days now and they sent back the documentation I referenced. The documentation led me to believe I need to use the LS3 server address, the 8080 portal number fooled me. As It turns out I did not need the portal number any way, just need to use the landmark server URL. The call setoff the flow just great, but is there a way to suppress the xml that gets created? I am wanting to set this URL to a link on a dashboard so the user can run it anytime they need. The xml result will freak some of them too much. Thanks again.
    David Williams
    Private
    Private
    Veteran Member
    (3040 points)
    Veteran Member
    Posts:1024


    Send Message:

    --
    03/08/2016 7:55 AM
    You can still trigger IPA via PFI using WFWK.1 - a simple AGS call to WFWK will trigger a flow.
    David Williams
    Woozy
    Private
    Private
    Veteran Member
    (3478 points)
    Veteran Member
    Posts:704


    Send Message:

    --
    03/08/2016 9:03 AM

    Hi JimY - If you get the xml, and it includes a positive WorkUnit number, then that workunit has been created, the flow is running, and you don't need to do anything else. 

    The obvious next step is to monitor that specific workunit for completion, but I haven't figured out how to do that yet using this method - though I think I should be able to build a URL to query one of the PfiWorkUnit lists and return it in json for parsing.

    We are currently using a script that uses DataImport to trigger the flow and then dbdisplay to check for the workunit status.  The start process is pretty clunky, so I may see if I can modify it to use the URL call instead.

    Good Luck!

    Kelly Meade
    J. R. Simplot Company
    Boise, ID
    Woozy
    Private
    Private
    Veteran Member
    (3478 points)
    Veteran Member
    Posts:704


    Send Message:

    --
    03/08/2016 9:10 AM
    Just to expand on what David Williams said, and clarify for folks who may be browsing this forum in the future...

    WFWK1 is a fine way to trigger flows related to LSF applications using Landmark IPA. However, the URL method described above can be used to trigger both LSF and Landmark application flows (by passing in the appropriate prodline). The WFWK1 method will not work to trigger flows that are purely touching Landmark applications.
    Kelly Meade
    J. R. Simplot Company
    Boise, ID
    JimY
    Private
    Private
    Veteran Member
    (1132 points)
    Veteran Member
    Posts:406


    Send Message:

    --
    03/08/2016 9:41 AM
    Thank you Woozy for the explanation.
    tambrosi
    Enterprise System Analysis
    Private
    Veteran Member
    (102 points)
    Veteran Member
    Posts:48


    Send Message:

    --
    01/30/2017 11:13 AM

    Hello all,  been searching around the posts and need to ask a question about this, 

    https://yourlandmarkserver.com{:port}/bpm/trigger?triggerType=ProcessAsync&triggerName=YourFlowName&dataArea=PROD&workTitle=Whatever 

    Does the infor login screen get invoked each time this is used? I am not sure how that works under Lawson.  I set up a test to use this method, and the login 

    screen does come up.   I did not see any references to it in the posts and I am trying to get a good understanding of it.   We have users that need to run IPA flows on demand 

    and I am looking for the best solution/ideas.  

    Thanks

    Terry

    tambrosi
    Enterprise System Analysis
    Private
    Veteran Member
    (102 points)
    Veteran Member
    Posts:48


    Send Message:

    --
    01/30/2017 11:13 AM

    Hello all,  been searching around the posts and need to ask a question about this, 

    https://yourlandmarkserver.com{:port}/bpm/trigger?triggerType=ProcessAsync&triggerName=YourFlowName&dataArea=PROD&workTitle=Whatever 

    Does the infor login screen get invoked each time this is used? I am not sure how that works under Lawson.  I set up a test to use this method, and the login 

    screen does come up.   I did not see any references to it in the posts and I am trying to get a good understanding of it.   We have users that need to run IPA flows on demand 

    and I am looking for the best solution/ideas.  

    Thanks

    Terry

    kflores01
    Private
    Private
    Veteran Member
    (115 points)
    Veteran Member
    Posts:41


    Send Message:

    --
    04/11/2017 2:48 PM
    Recently, we added a manual IPA trigger for users and it functions properly. However, the submission message is quite ugly. Has anyone determined a method to dress it up? For example, simply display "Released for Processing". Our users are not familiar with workunits nor XML.
    charliewilliam
    Private
    Private
    Basic Member
    (34 points)
    Basic Member
    Posts:16


    Send Message:

    --
    04/11/2017 2:58 PM

    This worked great for us!  Thank you.

    I have set this up in LTM as a shortcut on the desktop and am using the following for a Target URL:

    http://LTMServerNameWithoutPortNbr/bpm/trigger?triggerType=ProcessAsync&triggerName=MyTriggerName&dataArea=MyDataArea&workTitle=MyWorkTitle

    I get an XML output as follows.  Is there a way to suppress the XML output?  Maybe replace with a message instead?  Thanks!

     

    You are not authorized to post a reply.