PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 07/18/2017 9:38 AM by  John Henley
IPD Designer - Custom Function
 10 Replies
Sort:
You are not authorized to post a reply.
Page 1 of 3123 > >>
Author Messages
Roger French
Private
Private
Veteran Member
(1250 points)
Veteran Member
Posts:516


Send Message:

--
07/13/2017 10:04 AM

    IPD Designer version 10.1.1.49

    Windows 2012, Landmark 10.x

    So I want to add a custom function to utilize in designer.

    I've added the custom code in pflow.js in \system\LPS

    I stopped/restarted all services in Landmark and LSF.

    Exited and logged back into Process Designer. I still can't see the custom function I just created in the drop down of any assignment node.

    I rechecked everything. Still the custom function doesn't appear.

    Yes, I'm using this in the header part of the pflow.js. I even added it to the plfow.js on the LSF server. Yes all of the actual code in the function is in the pflow.js, and it's been checked and verified.

    Anyone know why it's not appearing in IPD?

    Thank you in advance.

     

    //*****Function Definition -->String=TestingFunc(varString)                                                   //

    Bob Canham
    Private
    Private
    Veteran Member
    (525 points)
    Veteran Member
    Posts:189


    Send Message:

    --
    07/13/2017 10:08 AM
    Hi Roger. Where is your IPD installed? In addition to putting the function on the server LPS directory, you have to put it in your IPD folder for the instance you're running (i.e. C:\IPDesigner\IPDPrd).

    Also, I would recommend adding functions to pflow_user.js rather than pflow.js. The pflow_user.js is meant for user defined functions and isn't overwritten when you install service packs.
    Roger French
    Private
    Private
    Veteran Member
    (1250 points)
    Veteran Member
    Posts:516


    Send Message:

    --
    07/13/2017 10:26 AM

    Hello, yes I'm aware of that using pflow_user.js. I am just doing some simple testing for now.

    Just an observation about a custom pflow.js. If it's to be copied to the local directory where IPD is installed, essentially that is saying that a custom function for server side processflow resides on a client side drive/directory. Correct? Not sure if that is actually correct, because shouldn't all code reside server side? Because obviously what happens to the function in the flow if the client side pflow_user.js or pflow.js function is removed from the client side? That would mean the function isn't available any longer. 

    Just as a test, I copied the pflow.js to the install dir on client side. Logged back into IPD and the custom function still doesn't appear.

     

    Bob Canham
    Private
    Private
    Veteran Member
    (525 points)
    Veteran Member
    Posts:189


    Send Message:

    --
    07/13/2017 10:52 AM
    You have to have the file in both places. When it runs it uses the server side. But when you're developing, you're using the local version. To be honest, I haven't tried modifying the pflow.js in a long time, I switched to the pflow_user.js as soon as it became available so I don't know if there is some other gotcha with editing the system provided file.
    Bob Canham
    Private
    Private
    Veteran Member
    (525 points)
    Veteran Member
    Posts:189


    Send Message:

    --
    07/13/2017 10:54 AM
    Just to verify, do you have multiple IPD instances on your client? I have 2, one for Prod and 1 for Test, so the custom function needs to be in both install directories.
    You are not authorized to post a reply.
    Page 1 of 3123 > >>