Package org.fenixedu.academic.domain.util.workflow

Examples of org.fenixedu.academic.domain.util.workflow.StateBean


    @Atomic
    public static void run(RegisterCandidacyBean candidacyBean) {
        check(RolePredicates.MASTER_DEGREE_ADMINISTRATIVE_OFFICE_PREDICATE);

        StateMachine.execute(candidacyBean.getCandidacy().getActiveCandidacySituation(), new StateBean(
                CandidacySituationType.REGISTERED.name()));

        final Registration registration = candidacyBean.getCandidacy().getRegistration();
        registration.setStartDate(candidacyBean.getStartDate() != null ? candidacyBean.getStartDate() : new YearMonthDay());
        registration.setEnrolmentModelForCurrentExecutionYear(candidacyBean.getEnrolmentModel());
View Full Code Here


        StateMachine.execute(defaultRunnerArgs.getState());
    }

    @Atomic
    public static void run(RunnerArgs runnerArgs) {
        StateMachine.execute(runnerArgs.getState(), new StateBean(runnerArgs.getNextState()));
    }
View Full Code Here

        init(registration, null, null);
    }

    @Override
    final public IState nextState() {
        return nextState(new StateBean(defaultNextStateType().toString()));
    }
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.util.workflow.StateBean

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.