Skip to content

Commit

Permalink
add created to listworkflowinstanceresponse
Browse files Browse the repository at this point in the history
  • Loading branch information
Edvard Fonsell committed Nov 1, 2014
1 parent 2c96b6d commit a5890ba
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public ListWorkflowInstanceResponse convert(WorkflowInstance instance, QueryWork
resp.state = instance.state;
resp.stateText = instance.stateText;
resp.nextActivation = instance.nextActivation;
resp.created = instance.created;
if (query.includeActions) {
resp.actions = new ArrayList<>();
for (WorkflowInstanceAction action : instance.actions) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ public class ListWorkflowInstanceResponse {
@ApiModelProperty(value = "State change attempts. One instance for each processing attempt.", required=false)
public List<Action> actions;



@ApiModelProperty(value = "Workflow instance creation timestamp", required=true)
public DateTime created;
}
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public void convertWithActionsWorks() throws IOException {
assertThat(resp.state, is(i.state));
assertThat(resp.stateText, is(i.stateText));
assertThat(resp.nextActivation, is(i.nextActivation));
assertThat(resp.created, is(i.created));
assertThat(resp.actions, contains(reflectEquals(new Action(a.state, a.stateText, a.retryNo,
a.executionStart, a.executionEnd))));
}
Expand Down

0 comments on commit a5890ba

Please sign in to comment.