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

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

Introduction

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

Prototype

public String getContent() 

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  a  v  a2s .  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);
    }
}