Trigger from Batch Program

 2 Replies
 0 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
John Cunningham
Advanced Member
Posts: 31
Advanced Member

    I am trying create a process flow in a batch program.  Does anyone have an example.  I am using the basic trigger, and it cannot find the service and create a work unit.  Can you use a basic trigger from a batch program?

    Gary Davies
    Veteran Member
    Posts: 248
    Veteran Member

      Basic triggers are really just for online programs as the service name includes the form Action taken ie  for HR11.1 Add the service has to be called HR11.1_A.

      Use the advanced trigger.  The good news is once you do one this way every new trigger you create will pretty much use the same identical code just the variables and the service name and work unit title really changes.   With the advanced trigger you have complete control of what the service is called.

       

       

      John Cunningham
      Advanced Member
      Posts: 31
      Advanced Member

        Good Point about the advanced trigger.  We were able to use the basic trigger for now by putting the following lines of code in the AP160 program prior to calling the flow

        MOVE "AP160.1"              TO CRT-TOKEN.

        MOVE "X"                    TO CRT-FC.

        and naming the service to match those parameters.