How to Pass in category values into Form Triggered Work Units ?

 6 Replies
 0 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
IloveLawson
Basic Member
Posts: 13
Basic Member
    Hi,

    On a form with pf service trigger set up, there is a Category Value field listed on the same page where the service name is defined. What is the usage of that field?

    It looks like it is designed so that we can pass in a category value when a work unit is generated as result of triggering. However, it seems only taking ONE constant value. Is there a way to enter a variable name and pass in a category value during runtime based on some kind of conditions?

    If it is not the way I thought it is, how can one specify category values using form pf service trigger?


    Thanks,


    Roger French
    Veteran Member
    Posts: 549
    Veteran Member
      You could have two actual flows.
       
      The first is the original, and then that first flow, call the second flow using the WorkAction node. On that second flow, or even the first flow, you can manipulate the Category Value by using the Assign node, and whatever conditional branching you want by using the Branch node. Actually you may not even need a second flow come to think about it, if I am understanding you right.

      HTH,
      Roger

       
      IloveLawson
      Basic Member
      Posts: 13
      Basic Member
        Thanks, Roger.

        You are correct. I could manipulate the values of categories inside the flow without the second one. I just thought that may be we could pass in the value outside of flows from form triggering with Work Category Value field. It looks like the flexibility is not there.

        Regards,
        David Williams
        Veteran Member
        Posts: 1127
        Veteran Member
          You can pass the category filter value when you trigger ProcessFlow. Are you using JavaScript to call WFWK or using Design Studio's form action to trigger your Service. Either way, you can include the category filter value.
          David Williams
          IloveLawson
          Basic Member
          Posts: 13
          Basic Member
            Thanks David. I am using Design Studio Form Action Triggering. It looks like I can only use one value for the category filtering. I am wondering if there is a way to pass in a form variable to that field.

            Regards,
            David Williams
            Veteran Member
            Posts: 1127
            Veteran Member
              When you use the Design Studio form action trigger then it doesn't appear that you can use a form variable as your category filter value. If this is a requirement then you can either pass this into a variable on your Service and then assign that to the oCatValue variable within your flow at the start or you will have to use JavaScript and trigger WFWK.1, passing the category filter value and your variables with the script.

              The first option seems to be the easy choice for what you need.
              David Williams
              IloveLawson
              Basic Member
              Posts: 13
              Basic Member
                Thanks, David. You are absolutely correct. Modifying the cat value inside the flow is indeed one way of doing it and it works. Lawson should have expanded the capabilities of allowing form variables to be used as category values at the form triggering time.


                Regards,