Uploaded image for project: 'Policy Framework'
  1. Policy Framework
  2. POLICY-3336

APEX CLI/Model: multiple outputs for nextState NULL

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Medium Medium
    • Istanbul Release
    • Istanbul Release
    • apex-pdp
    • None
    • Policy 23/6 - 7/7, Policy 12/7-26/7, Policy 28/7-17/9

      In APEX (Cli editors, core model), no 2 outputs can be created for the same state. The following is rejected (two outputs for next state S2 differing in event only:

      policy state output create name=P1 stateName=S1 outputName=S1Out eventName=eo_a nextState=S2

      policy state output create name=P1 stateName=S1 outputName=S1Out eventName=eo_b nextState=S2

       

      Now, if the state is the last state of the policy, i.e. NULL, this restriction should not apply, since the policy is handing over control to APEX for good, and APEX creates an output event and sends it to the producers.

      I don't know if there are deeper implications changing this, inside the implementation. But it would be very helpful to allow multiple outputs for "nextState=NULL".

      I marked this as bug, not sure if it is a story.

      /sven

            a.sreekumar a.sreekumar
            vdmeer.sven vdmeer.sven
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: