Service Criteria vs Service Variables

 3 Replies
 0 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
Robert
Veteran Member
Posts: 82
Veteran Member
    Greeting Gurus:

    I have built some clever flows and integrated with Basic and Custom triggers.

    But I have a somewhat sheepish question.

    I know how interpolate service variables (e.g , but what about service criteria? Company is quite popular. It is not interpolated by an activity node as a varable, so how do I access & use criteria in a flow?
    KK - Infor
    Veteran Member
    Posts: 61
    Veteran Member
      You would need to do a DME to LOGAN

      PROD=LOGAN&FILE=WFWORKUNIT&INDEX=WFWSET1&KEY=&FIELD=WORKUNIT;CRITERION-1;CRITERION-2;CRITERION-3&OUT=CSV&DELIM=~

      Hope this helps!

      KK
      Robert
      Veteran Member
      Posts: 82
      Veteran Member
        That returns the string "COMPANY". I am not understanding the purpose of CRITERION. I thought it would at some point return the company I was working with, and I could avoid explicity declaring a variable Company.
        KK - Infor
        Veteran Member
        Posts: 61
        Veteran Member
          Robert,
          Service criteria definition comes into play when you have 'different flows' associated with a 'single service' based on the different criteria values (like company) coming from the trigger.
          Eg You would like to use Req Approval
          Your setup has two companies (1000 and 4321)
          Company 4321 and 1000 different approval routing or are managed by different groups of people
          This would be a scenario where Service Criteria will be used. You will add two criterion on the service definition and then associate your different flows with them using the Service Process Definition screen on the BPM menu.do

          Rrefer to the PFI Admin guide or check the delivered service for the criteria associated with that.
          For custom service, you will need to build the logic in the trigger to pass COMPANY as the criteria.

          The value of the criteria "variable" is not available in the flow. You will either need to pass the COMPANY as a WU variable with the trigger or query for the value in the flow. I would recommend the former approach.

          Hope this helps!
          KK