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

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

Introduction

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

Prototype

public List<WorkflowTaskAssignee> getWorkflowTaskAssignees();

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;//from  w w w. j a  va 2 s . co 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());
    }
}