Example usage for com.liferay.portal.kernel.workflow WorkflowTask getWorkflowDefinitionName

List of usage examples for com.liferay.portal.kernel.workflow WorkflowTask getWorkflowDefinitionName

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.workflow WorkflowTask getWorkflowDefinitionName.

Prototype

public String getWorkflowDefinitionName();

Source Link

Usage

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

License:Open Source License

private void logTask(WorkflowTask task, String indent) {
    if (task == null) {
        return;// w w w. j  a v  a  2s.c  o m
    }

    fLogger.println(indent + "AssigneeUserId: " + task.getAssigneeUserId());
    fLogger.println(indent + "name: " + task.getName());
    fLogger.println(indent + "workflowDefinitionName: " + task.getWorkflowDefinitionName());
    fLogger.println(indent + "workflowInstanceId: " + task.getWorkflowInstanceId());
    fLogger.println(indent + "workflowTaskId: " + task.getWorkflowTaskId());

    fLogger.println(indent + "optionalAttributes:");
    logMap(task.getOptionalAttributes(), indent + "\t");

    fLogger.println(indent + "workflowTaskAssignees:");
    for (WorkflowTaskAssignee wta : task.getWorkflowTaskAssignees()) {
        fLogger.println(indent + "\t" + "assignee:");

        fLogger.println(indent + "\t\t" + "className: " + wta.getAssigneeClassName());
        fLogger.println(indent + "\t\t" + "classPK: " + wta.getAssigneeClassPK());
    }
}