API 1000-CHK-WF-STATUS Service Not Defined.

 1 Replies
 0 Subscribed to this topic
 17 Subscribed to this forum
Sort:
Author
Messages
Robert
Veteran Member
Posts: 82
Veteran Member

    I am all over this forum.

    I am trying to validate a service, once I accomplish that I am hoping to generate the workunit header.
    I built a simple flow and uploaded it.
    I defined the service in PFlow admin.    I then created a workunit and triggered the flow, and I received an email.

    At this point I am simply trying to validate the service in my 4GL program.  According to the docs, this is what I need to do:

    005000       INITIALIZE WFAPI-INPUT
    005000       INITIALIZE WFAPI-OUTPUT
    005000       MOVE "ZP868"               TO WFAPI-I-SERVICE
    005000       MOVE VALIDATION-ERROR      TO  WFAPI-I-CRITERION-1
    005000       PERFORM 1000-CHK-WF-STATUS

    I get an error code 3, Service not defined.
     

    Robert
    Veteran Member
    Posts: 82
    Veteran Member
      Remedy:

      The product line assigned to a service is case sensitive.
      The 4GL variable WS-DB-PRODUCT-LINE typically returns the product line lower case.
      When I defined the service, I assigned the product line uppercase.
      In my 4GL, I did a hardcode move:

      005000 MOVE "JUNK" TO WFAPI-I-PRODUCT-LINE

      The api call was successful.