Package de.xima.fc.order
Class AktionOrderHelper
java.lang.Object
de.xima.fc.order.AktionOrderHelper
Deprecated.
The old workflow engine will be removed, use the new workflow engine.
Helper for working with workflow actions.
- Author:
- XIMA MEDIA GmbH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
getNewIndex
(Status status, IEntityContext ec) Deprecated.static BasicRefResult
isAktionDeletable
(Aktion delAktion, IEntityContext ec) Deprecated.Prüft ob eine Aktion gelöscht werden kann.static BasicRefResult
isAktionMoveable
(Aktion currentAktion, int targetIndex, IEntityContext ec) Deprecated.Prüft ob eine Aktion verschoben werden darf.static BasicRefResult
isAktionMoveableToState
(Aktion action, Status state, Mandant client, int newIdx, IEntityContext ec) Deprecated.Action cannot be moved to the target state if that state contain an action with the same name already.static Aktion
move
(Aktion aktion, int targetIdx, IEntityContext ec) Deprecated.Passt die Reihenfolge der Aktionen an, wo es notwendig ist.static Aktion
moveToState
(Aktion action, Status state, int newIdx, IEntityContext ec) Deprecated.
-
Constructor Details
-
AktionOrderHelper
public AktionOrderHelper()Deprecated.
-
-
Method Details
-
getNewIndex
Deprecated. -
isAktionMoveable
public static BasicRefResult isAktionMoveable(Aktion currentAktion, int targetIndex, IEntityContext ec) Deprecated.Prüft ob eine Aktion verschoben werden darf. Ist diese Aktion mit einer nachfolgenden Aktion verknüpft so kann diese nicht verschoben werden.- Parameters:
currentAktion
- aktuelle AktiontargetIndex
- neuer Index der Aktion innerhalb der Liste von Aktionen- Returns:
true
, falls die Aktion verschoben werden darf, ansonstenfalse
-
isAktionMoveableToState
public static BasicRefResult isAktionMoveableToState(Aktion action, Status state, Mandant client, int newIdx, IEntityContext ec) Deprecated.Action cannot be moved to the target state if that state contain an action with the same name already.- Parameters:
action
- Action to be moved.state
- Target state to which the action is to be moved.client
- Current client.newIdx
- New index to which the action is to be moved.ec
- Current entity context.- Returns:
- Whether the given action can be moved to the given state.
-
isAktionDeletable
Deprecated.Prüft ob eine Aktion gelöscht werden kann.- Parameters:
delAktion
- Aktion, die gelöscht werden soll
-
move
Deprecated.Passt die Reihenfolge der Aktionen an, wo es notwendig ist. Aktualisiert die entsprechenden Aktionen, ausßer die Aktion welche verändert wurde. Hierbei wird nur die IdxNummer verändert.- Parameters:
aktion
- Aktion, die verschoben wurde auf Clientec
- EntityContext
-
moveToState
Deprecated.
-