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

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

Introduction

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

Prototype

public String getName() 

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 {//from  ww w  . jav  a 2s  .com

        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);
    }
}