ee.telekom.workflow.graph.node.AbstractNode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of workflow-engine Show documentation
Show all versions of workflow-engine Show documentation
Telekom-workflow-engine core provides the runtime environment for workflow execution together with all the supporting services (clustering, persistence, error handling etc).
package ee.telekom.workflow.graph.node;
import ee.telekom.workflow.graph.Node;
/**
* Abstract node implementation providing id and name.
*/
public abstract class AbstractNode implements Node{
private int id;
private String name;
public AbstractNode( int id ){
this( id, null );
}
public AbstractNode( int id, String name ){
this.id = id;
this.name = name;
}
@Override
public int getId(){
return id;
}
@Override
public String getName(){
return name;
}
@Override
public String toString(){
return "[" + getClass().getSimpleName() + " id=" + id + (name == null ? "" : (", name=" + name)) + "]";
}
}