Skip to content

Commit

Permalink
Add TaskReferenceName to TaskSummary so when using search it can retu…
Browse files Browse the repository at this point in the history
…rn the referenceTaskName
  • Loading branch information
Corey Quon (cquon) committed Aug 17, 2017
1 parent bc0810d commit d5a617c
Showing 1 changed file with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,17 @@ public class TaskSummary {
private String taskDefName;

private String taskType;


private String referenceTaskName;

public TaskSummary(Task task) {

SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'");
sdf.setTimeZone(gmt);

this.taskDefName = task.getTaskDefName();
this.taskType = task.getTaskType();
this.referenceTaskName = task.getReferenceTaskName();
this.workflowId = task.getWorkflowInstanceId();
this.taskId = task.getTaskId();
this.inputData = task.getInputData();
Expand Down Expand Up @@ -295,5 +298,17 @@ public void setTaskType(String taskType) {
this.taskType = taskType;
}


/**
* @return the referenceTaskName
*/
public String getReferenceTaskName() {
return referenceTaskName;
}

/**
* @param referenceTaskName the referenceTaskName to set
*/
public void setReferenceTaskName(String referenceTaskName) {
this.referenceTaskName = referenceTaskName;
}
}

0 comments on commit d5a617c

Please sign in to comment.