Skip to content

Commit

Permalink
remove JSONProcessInstanceResult deprecated properties
Browse files Browse the repository at this point in the history
  • Loading branch information
teosarca committed Apr 26, 2017
1 parent 74bf175 commit bef5dc7
Showing 1 changed file with 0 additions and 60 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,41 +73,6 @@ public static final JSONProcessInstanceResult of(final ProcessInstanceResult res
@JsonInclude(JsonInclude.Include.NON_NULL)
private final JSONResultAction action;

//
// Report
@JsonProperty("reportFilename")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@Deprecated
private String reportFilename;
@JsonProperty("reportContentType")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@Deprecated
private String reportContentType;

//
// Open view
@JsonProperty("openViewWindowId")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@Deprecated
private WindowId openViewWindowId;
//
@JsonProperty("openViewId")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@Deprecated
private String openViewId;

//
// Open single document
@JsonProperty("openDocumentWindowId")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@Deprecated
private WindowId openDocumentWindowId;
//
@JsonProperty("openDocumentId")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@Deprecated
private String openDocumentId;

private JSONProcessInstanceResult(final ProcessInstanceResult result)
{
pinstanceId = result.getInstanceId().toJson();
Expand All @@ -116,31 +81,6 @@ private JSONProcessInstanceResult(final ProcessInstanceResult result)
error = result.isError();

action = toJSONResultAction(result.getAction());

//
// Update action related deprecated fields:
if (action == null)
{
// nothing
}
else if (action instanceof JSONOpenReportAction)
{
final JSONOpenReportAction openReportAction = (JSONOpenReportAction)action;
reportFilename = openReportAction.getFilename();
reportContentType = openReportAction.getContentType();
}
else if (action instanceof JSONOpenViewAction)
{
final JSONOpenViewAction openViewAction = (JSONOpenViewAction)action;
openViewWindowId = openViewAction.getWindowId();
openViewId = openViewAction.getViewId();
}
else if (action instanceof JSONOpenSingleDocumentAction)
{
final JSONOpenSingleDocumentAction openSingleDocumentAction = (JSONOpenSingleDocumentAction)action;
openDocumentWindowId = openSingleDocumentAction.getWindowId();
openDocumentId = openSingleDocumentAction.getDocumentId();
}
}

/** Converts {@link ResultAction} to JSON */
Expand Down

0 comments on commit bef5dc7

Please sign in to comment.