Class StepService


  • public final class StepService
    extends java.lang.Object
    Service dedicated to management of formDisplay
    • Method Detail

      • removeStep

        public void removeStep​(int nIdStep)
        Remove a given Step and the all its formDisplays. The responses, group/question associated to the displays will be deleted. All the descendants of the displays will also be removed
        Parameters:
        nIdStep - The Step Id
      • sortStepsWithTransitions

        public static java.util.List<Step> sortStepsWithTransitions​(java.util.List<Step> listSteps,
                                                                    java.util.List<Transition> listTransitions)
        Return a list of steps based on given step list and transition between steps list
        Parameters:
        listSteps - the list of steps
        listTransitions - the list of transitions
        Returns:
        the list of given steps based on given transitions
      • getStepTemplateData

        public StepJsonData getStepTemplateData​(int idTemplate)