Class SupportedActivityValidator
- java.lang.Object
-
- org.camunda.bpm.engine.impl.migration.validation.activity.SupportedActivityValidator
-
- All Implemented Interfaces:
MigrationActivityValidator
public class SupportedActivityValidator extends java.lang.Object implements MigrationActivityValidator
*Supported* refers to whether an activity instance of a certain activity type can be migrated. This validator is irrelevant for transition instances which can be migrated at any activity type. Thus, this validator is only used during migration instruction generation and migrating activity instance validation, not during migration instruction validation.
-
-
Field Summary
Fields Modifier and Type Field Description static SupportedActivityValidator
INSTANCE
static java.util.List<java.lang.Class<? extends ActivityBehavior>>
SUPPORTED_ACTIVITY_BEHAVIORS
-
Constructor Summary
Constructors Constructor Description SupportedActivityValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
isAsync(ActivityImpl activity)
boolean
isSupportedActivity(ActivityImpl activity)
boolean
valid(ActivityImpl activity)
Check that an activity can be migrated.
-
-
-
Field Detail
-
INSTANCE
public static SupportedActivityValidator INSTANCE
-
SUPPORTED_ACTIVITY_BEHAVIORS
public static java.util.List<java.lang.Class<? extends ActivityBehavior>> SUPPORTED_ACTIVITY_BEHAVIORS
-
-
Method Detail
-
valid
public boolean valid(ActivityImpl activity)
Description copied from interface:MigrationActivityValidator
Check that an activity can be migrated.- Specified by:
valid
in interfaceMigrationActivityValidator
- Parameters:
activity
- the activity to migrate- Returns:
- true if the activity can be migrated, false otherwise
-
isSupportedActivity
public boolean isSupportedActivity(ActivityImpl activity)
-
isAsync
protected boolean isAsync(ActivityImpl activity)
-
-