(self, termination_condition, transition_condition)
return XPath.if_(
            termination_condition,
            SCHEDULE_TERMINATED,
            XPath.if_(
                transition_condition,
                str(next_phase),
                str(this_phase),
            ),
        )
Returns the current schedule phase calculation, taking transition and termination conditions into account.

        if({termination_condition}, '-1',
            if({transition_condition}, current_form_phase + 1, current_form_phase))
Returns the current schedule phase calculation, taking transition and termination conditions into account.
Returns the current schedule phase calculation taking transition and termination conditions into account .
def current_schedule_phase_calculation(self, termination_condition, transition_condition):
        """
        Returns the current schedule phase calculation, taking transition and termination conditions into account.

        if({termination_condition}, '-1',
            if({transition_condition}, current_form_phase + 1, current_form_phase))
        """
        this_phase = self.phase.id
        next_phase = this_phase + 1

        return XPath.if_(
            termination_condition,
            SCHEDULE_TERMINATED,
            XPath.if_(
                transition_condition,
                str(next_phase),
                str(this_phase),
            ),
        )
def current_schedule_phase_calculation ( self , termination_condition , transition_condition ) : this_phase = self . phase . id next_phase = this_phase + 1 return XPath . if_ ( termination_condition , SCHEDULE_TERMINATED , XPath . if_ ( transition_condition , str ( next_phase ) , str ( this_phase ) , ) , )