Class AktionOrderHelper

java.lang.Object
de.xima.fc.order.AktionOrderHelper

@Deprecated public class AktionOrderHelper extends Object
Deprecated.
The old workflow engine will be removed, use the new workflow engine.
Helper for working with workflow actions.
Author:
XIMA MEDIA GmbH
  • Constructor Details

    • AktionOrderHelper

      public AktionOrderHelper()
      Deprecated.
  • Method Details

    • getNewIndex

      public static int getNewIndex(Status status, IEntityContext ec)
      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 Aktion
      targetIndex - neuer Index der Aktion innerhalb der Liste von Aktionen
      Returns:
      true, falls die Aktion verschoben werden darf, ansonsten false
    • 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

      public static BasicRefResult isAktionDeletable(Aktion delAktion, IEntityContext ec)
      Deprecated.
      Prüft ob eine Aktion gelöscht werden kann.
      Parameters:
      delAktion - Aktion, die gelöscht werden soll
    • move

      public static Aktion move(Aktion aktion, int targetIdx, IEntityContext ec)
      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 Client
      ec - EntityContext
    • moveToState

      public static Aktion moveToState(Aktion action, Status state, int newIdx, IEntityContext ec)
      Deprecated.