Class RuleFunctionality

All Implemented Interfaces:
Runnable

public class RuleFunctionality extends FWAbstractFunctionality
Switch point of the function chain: a function without view that evaluates its rules (see FWRuleSet) and goes on to the function they select. The reserved targets nextFunction and previousFunction give the id of the function to run when the switch point was reached going forward resp. going back (parameter FWAbstractFunctionality.DIRECTION, set by the client controller); all other rules set parameters.
<function id="sim_work.switch.result" class="net.simplace.pipe.functionalities.RuleFunctionality"
    ressource="">
  <rule target="sim_work.multiple">${sim_work.simulationcount} gt 1</rule>
  <rule target="nextFunction">
    ${sim_work.multiple} ? 'sim_work.form.result_simulation' : 'sim_work.form.result_variable'
  </rule>
  <rule target="previousFunction">'sim_work.start'</rule>
</function>
If the rule for the direction is missing or gives no value, the attribute nextFunction resp. previousFunction of the function is used.
Author:
Andreas Enders
  • Field Details

    • NEXT_FUNCTION

      public static final String NEXT_FUNCTION
      reserved target: id of the function to run when going forward
      See Also:
    • PREVIOUS_FUNCTION

      public static final String PREVIOUS_FUNCTION
      reserved target: id of the function to run when going back
      See Also:
  • Constructor Details

    • RuleFunctionality

      public RuleFunctionality()
  • Method Details