Example usage for com.liferay.portal.workflow.kaleo.definition Definition getInitialState

List of usage examples for com.liferay.portal.workflow.kaleo.definition Definition getInitialState

Introduction

In this page you can find the example usage for com.liferay.portal.workflow.kaleo.definition Definition getInitialState.

Prototype

public State getInitialState() 

Source Link

Usage

From source file:de.hofuniversity.iisys.liferay.workflows.LoggingWorkflowEngine.java

License:Open Source License

@Override
public void validateWorkflowDefinition(InputStream inputStream) throws WorkflowException {

    try {//w  ww . j  ava 2s  .  c o m

        fLogger.println("WorkflowEngine.updateContext");

        Definition definition = _workflowModelParser.parse(inputStream);

        fLogger.println("\tdefinition.name" + definition.getName());
        fLogger.println("\tdefinition.content" + definition.getContent());
        fLogger.println("\tdefinition.initialState" + definition.getInitialState());

        fLogger.flush();

        if (_workflowValidator != null) {
            _workflowValidator.validate(definition);
        }
    } catch (Exception e) {
        throw new WorkflowException(e);
    }
}