Tabnine Logo
StateTransition.matches
Code IndexAdd Tabnine to your IDE (free)

How to use
matches
method
in
org.springframework.batch.core.job.flow.support.StateTransition

Best Java code snippets using org.springframework.batch.core.job.flow.support.StateTransition.matches (Showing top 19 results out of 315)

origin: spring-projects/spring-batch

private boolean matches(String from, String status) {
  for (StateTransition transition : transitions) {
    if (from.equals(transition.getState().getName()) && transition.matches(status)) {
      return true;
    }
  }
  return false;
}
origin: spring-projects/spring-batch

if (stateTransition.matches(exitCode) || (exitCode.equals("PENDING") && stateTransition.matches("STOPPED"))) {
  if (stateTransition.isEnd()) {
origin: spring-projects/spring-batch

String exitCode = status.getName();
for (StateTransition stateTransition : set) {
  if (stateTransition.matches(exitCode) || (exitCode.equals("PENDING") && stateTransition.matches("STOPPED"))) {
    if (stateTransition.isEnd()) {
      if (stateTransition.matches(exitCode) || (exitCode.equals("PENDING") && stateTransition.matches("STOPPED"))) {
        if (stateTransition.isEnd()) {
origin: spring-projects/spring-batch

@Test
public void testMatchesStar() {
  StateTransition transition = StateTransition.createStateTransition(state, "*", "start");
  assertTrue(transition.matches("CONTINUABLE"));
}
origin: spring-projects/spring-batch

@Test
public void testMatchesEmpty() {
  StateTransition transition = StateTransition.createStateTransition(state, "", "start");
  assertTrue(transition.matches("CONTINUABLE"));
}
origin: spring-projects/spring-batch

@Test
public void testMatchesNull() {
  StateTransition transition = StateTransition.createStateTransition(state, null, "start");
  assertTrue(transition.matches("CONTINUABLE"));
}
origin: spring-projects/spring-batch

@Test
public void testMatchesExact() {
  StateTransition transition = StateTransition.createStateTransition(state, "CONTINUABLE", "start");
  assertTrue(transition.matches("CONTINUABLE"));
}
origin: spring-projects/spring-batch

@Test
public void testMatchesPlaceholder() {
  StateTransition transition = StateTransition.createStateTransition(state, "CONTIN???LE", "start");
  assertTrue(transition.matches("CONTINUABLE"));
}
origin: spring-projects/spring-batch

@Test
public void testMatchesWildcard() {
  StateTransition transition = StateTransition.createStateTransition(state, "CONTIN*", "start");
  assertTrue(transition.matches("CONTINUABLE"));
}
origin: org.springframework.batch.core/org.motechproject.org.springframework.batch.core

private boolean matches(String from, String status) {
  for (StateTransition transition : transitions) {
    if (from.equals(transition.getState().getName()) && transition.matches(status)) {
      return true;
    }
  }
  return false;
}
origin: org.springframework.batch/spring-batch-core

private boolean matches(String from, String status) {
  for (StateTransition transition : transitions) {
    if (from.equals(transition.getState().getName()) && transition.matches(status)) {
      return true;
    }
  }
  return false;
}
origin: apache/servicemix-bundles

private boolean matches(String from, String status) {
  for (StateTransition transition : transitions) {
    if (from.equals(transition.getState().getName()) && transition.matches(status)) {
      return true;
    }
  }
  return false;
}
origin: org.springframework.batch.core/org.motechproject.org.springframework.batch.core

if (stateTransition.matches(exitCode) || (exitCode.equals("PENDING") && stateTransition.matches("STOPPED"))) {
  if (stateTransition.isEnd()) {
origin: org.springframework.batch/spring-batch-core

if (stateTransition.matches(exitCode) || (exitCode.equals("PENDING") && stateTransition.matches("STOPPED"))) {
  if (stateTransition.isEnd()) {
origin: apache/servicemix-bundles

if (stateTransition.matches(exitCode) || (exitCode.equals("PENDING") && stateTransition.matches("STOPPED"))) {
  if (stateTransition.isEnd()) {
origin: org.springframework.batch/spring-batch-core

String exitCode = status.getName();
for (StateTransition stateTransition : set) {
  if (stateTransition.matches(exitCode) || (exitCode.equals("PENDING") && stateTransition.matches("STOPPED"))) {
    if (stateTransition.isEnd()) {
      if (stateTransition.matches(exitCode) || (exitCode.equals("PENDING") && stateTransition.matches("STOPPED"))) {
        if (stateTransition.isEnd()) {
origin: org.springframework.batch.core/org.motechproject.org.springframework.batch.core

String exitCode = status.getName();
for (StateTransition stateTransition : set) {
  if (stateTransition.matches(exitCode) || (exitCode.equals("PENDING") && stateTransition.matches("STOPPED"))) {
    if (stateTransition.isEnd()) {
      if (stateTransition.matches(exitCode) || (exitCode.equals("PENDING") && stateTransition.matches("STOPPED"))) {
        if (stateTransition.isEnd()) {
origin: apache/servicemix-bundles

String exitCode = status.getName();
for (StateTransition stateTransition : set) {
  if (stateTransition.matches(exitCode) || (exitCode.equals("PENDING") && stateTransition.matches("STOPPED"))) {
    if (stateTransition.isEnd()) {
      if (stateTransition.matches(exitCode) || (exitCode.equals("PENDING") && stateTransition.matches("STOPPED"))) {
        if (stateTransition.isEnd()) {
origin: org.springframework.batch/org.springframework.batch.core

String exitCode = status.getName();
for (StateTransition stateTransition : set) {
  if (stateTransition.matches(exitCode)) {
    if (stateTransition.isEnd()) {
org.springframework.batch.core.job.flow.supportStateTransitionmatches

Javadoc

Check if the provided status matches the pattern, signalling that the next State should be executed.

Popular methods of StateTransition

  • createStateTransition
    Create a new StateTransition specification from one Stateto another (by name).
  • getNext
    Public getter for the next State name.
  • isEnd
    Check for a special next State signalling the end of a job.
  • <init>
  • createEndStateTransition
    Create a new end state StateTransition specification. This transition explicitly goes to an end stat
  • getState
    Public getter for the State.
  • switchOriginAndDestination
    Convenience method to switch the origin and destination of a transition, creating a new instance.
  • getPattern
  • toString

Popular in Java

  • Updating database using SQL prepared statement
  • compareTo (BigDecimal)
  • getSharedPreferences (Context)
  • setContentView (Activity)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now