All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ee.telekom.workflow.graph.node.AbstractNode Maven / Gradle / Ivy

Go to download

Telekom-workflow-engine core provides the runtime environment for workflow execution together with all the supporting services (clustering, persistence, error handling etc).

There is a newer version: 1.6.3
Show newest version
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)) + "]";
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy