final Entity productionTracking
mes-plugins/mes-plugins-production-counting/src/main/java/com/qcadoo/mes/productionCounting/states/ProductionTrackingStatesHelper.java
stateExecutorService.changeState(ProductionTrackingStateServiceMarker.class, productionTracking, ProductionTrackingState.ACCEPTED.getStringValue());
void resumeStateChange(final Entity productionTracking)
final Entity productionTracking
mes-plugins/mes-plugins-production-counting/src/main/java/com/qcadoo/mes/productionCounting/states/ProductionTrackingStatesHelper.java
stateExecutorService.changeState(ProductionTrackingStateServiceMarker.class, productionTracking, ProductionTrackingState.DRAFT.getStringValue());
void cancelStateChange(final Entity productionTracking)
final StateEnum targetState
mes-plugins/mes-plugins-production-counting/src/main/java/com/qcadoo/mes/productionCounting/states/constants/ProductionTrackingState.java
return ACCEPTED.equals(targetState) || DRAFT.equals(targetState);
boolean canChangeTo(final StateEnum targetState)
final Entity entity
mes-plugins/mes-plugins-states/src/main/java/com/qcadoo/mes/newstates/StateExecutorService.java
if (entity == null) {
            return null;
Entity saveAndValidate(final Entity entity)
String msg  ComponentState.MessageType messageType
mes-plugins/mes-plugins-states/src/main/java/com/qcadoo/mes/newstates/StateExecutorService.java
if (componentMessagesHolder != null) {
            componentMessagesHolder.addMessage(msg, messageType);
void message(String msg, ComponentState.MessageType messageType)
final StateChangeContext context
mes-plugins/mes-plugins-production-counting/src/main/java/com/qcadoo/mes/productionCounting/states/ProductionTrackingStatesHelper.java
//        context.setStatus(StateChangeStatus.IN_PROGRESS);
//
//        productionTrackingStateChangeAspect.changeState(context);
//
void resumeStateChange(final StateChangeContext context)
final StateChangeContext context
mes-plugins/mes-plugins-production-counting/src/main/java/com/qcadoo/mes/productionCounting/states/ProductionTrackingStatesHelper.java
//        context.setStatus(StateChangeStatus.FAILURE);
//
//        productionTrackingStateChangeAspect.changeState(context);
//
void cancelStateChange(final StateChangeContext context)
final Entity productionTracking
mes-plugins/mes-plugins-production-counting/src/main/java/com/qcadoo/mes/productionCounting/states/ProductionTrackingStatesHelper.java
Entity stateChangeEntity = findPausedStateChangeEntity(productionTracking);
    private Entity findPausedStateChangeEntity(final Entity productionTracking) {
        scb.add(SearchRestrictions.eq(ProductionTrackingStateChangeFields.STATUS, StateChangeStatus.PAUSED.getStringValue()));
//    public StateChangeStatus tryAccept(final Entity productionRecord) {
//        return tryAccept(productionRecord, false);
//
StateChangeContext findPausedStateTransition(final Entity productionTracking)