Java Code Examples for org.camunda.bpm.engine.impl.pvm.process.ActivityImpl#isAsyncAfter()

The following examples show how to use org.camunda.bpm.engine.impl.pvm.process.ActivityImpl#isAsyncAfter() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AsyncMigrationValidator.java    From camunda-bpm-platform with Apache License 2.0 6 votes vote down vote up
@Override
public void validate(MigratingTransitionInstance migratingInstance, MigratingProcessInstance migratingProcessInstance,
    MigratingTransitionInstanceValidationReportImpl instanceReport) {
  ActivityImpl targetActivity = (ActivityImpl) migratingInstance.getTargetScope();

  if (targetActivity != null) {
    if (migratingInstance.isAsyncAfter()) {
      if (!targetActivity.isAsyncAfter()) {
        instanceReport.addFailure("Target activity is not asyncAfter");
      }
    }
    else {
      if (!targetActivity.isAsyncBefore()) {
        instanceReport.addFailure("Target activity is not asyncBefore");
      }
    }
  }

}
 
Example 2
Source File: SupportedActivityValidator.java    From camunda-bpm-platform with Apache License 2.0 4 votes vote down vote up
protected boolean isAsync(ActivityImpl activity) {
  return activity.isAsyncBefore() || activity.isAsyncAfter();
}
 
Example 3
Source File: LegacyBehavior.java    From camunda-bpm-platform with Apache License 2.0 4 votes vote down vote up
protected static boolean isAsync(ActivityImpl activity) {
  return activity.isAsyncBefore() || activity.isAsyncAfter();
}
 
Example 4
Source File: DefaultFailedJobParseListener.java    From camunda-bpm-platform with Apache License 2.0 4 votes vote down vote up
protected boolean isAsync(ActivityImpl activity) {
  return activity.isAsyncBefore() || activity.isAsyncAfter();
}