Skip to content

Commit

Permalink
Initial attempt (copy doesn't work)
Browse files Browse the repository at this point in the history
  • Loading branch information
wcgunter committed Jul 17, 2023
1 parent 969d9bc commit cff4c06
Show file tree
Hide file tree
Showing 3 changed files with 2,502 additions and 2,318 deletions.
305 changes: 166 additions & 139 deletions cws-service/src/main/java/jpl/cws/scheduler/CwsProcessInstance.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,143 +5,170 @@

public class CwsProcessInstance {

private String uuid; // from CWS cws_sched_worker_proc_inst table

private String procDefKey;
private String procInstId;
private String superProcInstId;
private String status;

private String initiationKey; // from CWS cws_sched_worker_proc_inst table

private Timestamp createdTimestamp; // from CWS cws_sched_worker_proc_inst table
private Timestamp updatedTimestamp; // from CWS cws_sched_worker_proc_inst table

private String claimedByWorker; // from CWS cws_sched_worker_proc_inst table
private String startedByWorker; // from CWS cws_sched_worker_proc_inst table

private Timestamp procStartTime; // from Camunda ACT_HI_PROCINST_ table
private Timestamp procEndTime; // from Camunda ACT_HI_PROCINST_ table

private Map<String, String> inputVariables;

public CwsProcessInstance(
String uuid,
String procDefKey,
String procInstId,
String superProcInstId,
String status,
String initiationKey,
Timestamp createdTimestamp,
Timestamp updatedTimestamp,
String claimedByWorker,
String startedByWorker,
Timestamp procStartTime,
Timestamp procEndTime,
Map<String, String> inputVariables) {
super();
this.uuid = uuid;
this.procDefKey = procDefKey;
this.procInstId = procInstId;
this.superProcInstId = superProcInstId;
this.status = status;
this.initiationKey = initiationKey;
this.createdTimestamp = createdTimestamp;
this.updatedTimestamp = updatedTimestamp;
this.claimedByWorker = claimedByWorker;
this.startedByWorker = startedByWorker;
this.procStartTime = procStartTime;
this.procEndTime = procEndTime;
this.inputVariables = inputVariables;
}

public String getUuid() {
return uuid;
}

public void setUuid(String uuid) {
this.uuid = uuid;
}

public String getProcDefKey() {
return procDefKey;
}
public void setProcDefKey(String procDefKey) {
this.procDefKey = procDefKey;
}
public String getProcInstId() {
return procInstId;
}
public void setProcInstId(String procInstId) {
this.procInstId = procInstId;
}
public String getSuperProcInstId() {
return superProcInstId;
}
public void setSuperProcInstId(String superProcInstId) {
this.superProcInstId = superProcInstId;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public void setInputVariables(Map<String, String> input) {
this.inputVariables = input;
}

public Map<String, String> getInputVariables() {
return inputVariables;
}

public String getInitiationKey() {
return initiationKey;
}
public void setInitiationKey(String initiationKey) {
this.initiationKey = initiationKey;
}

public Timestamp getCreatedTimestamp() {
return createdTimestamp;
}
public void setCreatedTimestamp(Timestamp createdTimestamp) {
this.createdTimestamp = createdTimestamp;
}

public Timestamp getUpdatedTimestamp() {
return updatedTimestamp;
}
public void setUpdatedTimestamp(Timestamp updatedTimestamp) {
this.updatedTimestamp = updatedTimestamp;
}

public String getClaimedByWorker() {
return claimedByWorker;
}
public void setClaimedByWorker(String claimedByWorker) {
this.claimedByWorker = claimedByWorker;
}

public String getStartedByWorker() {
return startedByWorker;
}
public void setStartedByWorker(String startedByWorker) {
this.startedByWorker = startedByWorker;
}

public Timestamp getProcStartTime() {
return procStartTime;
}
public void setProcStartTime(Timestamp procStartTime) {
this.procStartTime = procStartTime;
}

public Timestamp getProcEndTime() {
return procEndTime;
}
public void setProcEndTime(Timestamp procEndTime) {
this.procEndTime = procEndTime;
}

private String uuid; // from CWS cws_sched_worker_proc_inst table

private String procDefKey;
private String procInstId;
private String superProcInstId;
private String status;

private String initiationKey; // from CWS cws_sched_worker_proc_inst table

private Timestamp createdTimestamp; // from CWS cws_sched_worker_proc_inst table
private Timestamp updatedTimestamp; // from CWS cws_sched_worker_proc_inst table

private String claimedByWorker; // from CWS cws_sched_worker_proc_inst table
private String startedByWorker; // from CWS cws_sched_worker_proc_inst table

private Timestamp procStartTime; // from Camunda ACT_HI_PROCINST_ table
private Timestamp procEndTime; // from Camunda ACT_HI_PROCINST_ table

private Map<String, String> inputVariables;

private Map<String, String> outputVariables;

public CwsProcessInstance(
String uuid,
String procDefKey,
String procInstId,
String superProcInstId,
String status,
String initiationKey,
Timestamp createdTimestamp,
Timestamp updatedTimestamp,
String claimedByWorker,
String startedByWorker,
Timestamp procStartTime,
Timestamp procEndTime,
Map<String, String> inputVariables,
Map<String, String> outputVariables) {
super();
this.uuid = uuid;
this.procDefKey = procDefKey;
this.procInstId = procInstId;
this.superProcInstId = superProcInstId;
this.status = status;
this.initiationKey = initiationKey;
this.createdTimestamp = createdTimestamp;
this.updatedTimestamp = updatedTimestamp;
this.claimedByWorker = claimedByWorker;
this.startedByWorker = startedByWorker;
this.procStartTime = procStartTime;
this.procEndTime = procEndTime;
this.inputVariables = inputVariables;
this.outputVariables = outputVariables;
}

public String getUuid() {
return uuid;
}

public void setUuid(String uuid) {
this.uuid = uuid;
}

public String getProcDefKey() {
return procDefKey;
}

public void setProcDefKey(String procDefKey) {
this.procDefKey = procDefKey;
}

public String getProcInstId() {
return procInstId;
}

public void setProcInstId(String procInstId) {
this.procInstId = procInstId;
}

public String getSuperProcInstId() {
return superProcInstId;
}

public void setSuperProcInstId(String superProcInstId) {
this.superProcInstId = superProcInstId;
}

public String getStatus() {
return status;
}

public void setStatus(String status) {
this.status = status;
}

public String getInitiationKey() {
return initiationKey;
}

public void setInitiationKey(String initiationKey) {
this.initiationKey = initiationKey;
}

public Timestamp getCreatedTimestamp() {
return createdTimestamp;
}

public void setCreatedTimestamp(Timestamp createdTimestamp) {
this.createdTimestamp = createdTimestamp;
}

public Timestamp getUpdatedTimestamp() {
return updatedTimestamp;
}

public void setUpdatedTimestamp(Timestamp updatedTimestamp) {
this.updatedTimestamp = updatedTimestamp;
}

public String getClaimedByWorker() {
return claimedByWorker;
}

public void setClaimedByWorker(String claimedByWorker) {
this.claimedByWorker = claimedByWorker;
}

public String getStartedByWorker() {
return startedByWorker;
}

public void setStartedByWorker(String startedByWorker) {
this.startedByWorker = startedByWorker;
}

public Timestamp getProcStartTime() {
return procStartTime;
}

public void setProcStartTime(Timestamp procStartTime) {
this.procStartTime = procStartTime;
}

public Timestamp getProcEndTime() {
return procEndTime;
}

public void setProcEndTime(Timestamp procEndTime) {
this.procEndTime = procEndTime;
}

public void setInputVariables(Map<String, String> input) {
this.inputVariables = input;
}

public Map<String, String> getInputVariables() {
return inputVariables;
}

public void setOutputVariables(Map<String, String> output) {
this.outputVariables = output;
}

public Map<String, String> getOutputVariables() {
return outputVariables;
}

}
Loading

0 comments on commit cff4c06

Please sign in to comment.