-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/decision polling #142
Open
tDalile
wants to merge
48
commits into
viadee:develop
Choose a base branch
from
tDalile:feature/decision-polling
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
a4b1904
init
tDalile 7b0f45c
add temporary properties for development
tDalile 7fabbb4
Add decision polling property
tDalile 6513ca7
Add layout file for decision definition event mapping
tDalile c3bfd22
Add layout class for decision definition event mapping
tDalile 97d8cc9
Add polling job for decision definitions
tDalile 3eff38e
Add polling service for decision definitions
tDalile f2be5e5
Add REST polling for decision definitions
tDalile 9ed14b2
Add JDBC polling for decision definitions
tDalile a9381b4
Fix formatting
tDalile c4c7fa5
Add decision instance property
tDalile a5bab3c
Add decision instance polling
tDalile e236897
Add decision instance property
tDalile b0bb01f
Reset
tDalile 0e5599a
Add JDBC polling of decision instances
tDalile c655a6c
Add REST polling of decision instances
tDalile 1d41e45
Add decision instance class
tDalile 04c2808
Add decision instance input and output class
tDalile 677320f
Add decision instance response class
tDalile 18898d4
Add decision instance input and output response class
tDalile 37d3255
Reset
tDalile 138b915
Add Runtime DMN tests
tDalile 2138858
Add REST polling DMN tests
tDalile da24d53
Add decision polling property
tDalile 825aaaf
Add layout class for decision definition event mapping
tDalile 2359503
Add polling job for decision definitions
tDalile 77fdc9a
Add polling service for decision definitions
tDalile 4f50304
Add REST polling for decision definitions
tDalile 9dd5a7a
Add JDBC polling for decision definitions
tDalile 0644550
Add decision instance property
tDalile 9743cb1
Add decision instance polling
tDalile 3b1ab1a
Fix merge issue
tDalile 27ed009
Add JDBC polling of decision instances
tDalile 48514b1
Add REST polling of decision instances
tDalile f4d3a72
Add layout classes for decision instance event mapping
tDalile 8a04da1
Add REST polling DMN tests
tDalile 260a218
Add DMN engine dependency
tDalile 60f4769
Add DMN resources for testing
tDalile f7c805d
Add REST polling DMN tests
tDalile d4b0c41
Add explanation for formatString method
tDalile 927f673
Add complex object test
tDalile e038fb2
Add config file to pass the spin plugin to process engine
tDalile a3e8589
Add model for testing
tDalile 547f2ff
Resolved merge clonflicts
tDalile 0ed833d
Fix missing serializable
tDalile 38a45f6
Fix formatting
tDalile 291898f
Fix configuration of process engine without camunda.cfg.xml
tDalile 44e882d
Fix string -> date as required in the pipeline
tDalile File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
88 changes: 88 additions & 0 deletions
88
camunda-kafka-model/src/main/java/de/viadee/camunda/kafka/event/DecisionDefinitionEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
package de.viadee.camunda.kafka.event; | ||
|
||
import java.util.Date; | ||
|
||
public class DecisionDefinitionEvent extends DeploymentEvent { | ||
|
||
private String key; | ||
private String category; | ||
private Integer version; | ||
private String resource; | ||
private String decisionRequirementsDefinitionId; | ||
private String decisionRequirementsDefinitionKey; | ||
private Integer historyTimeToLive; | ||
private String versionTag; | ||
private String xml; | ||
|
||
public String getKey() { | ||
return key; | ||
} | ||
|
||
public void setKey(String key) { | ||
this.key = key; | ||
} | ||
|
||
public String getCategory() { | ||
return category; | ||
} | ||
|
||
public void setCategory(String category) { | ||
this.category = category; | ||
} | ||
|
||
public Integer getVersion() { | ||
return version; | ||
} | ||
|
||
public void setVersion(Integer version) { | ||
this.version = version; | ||
} | ||
|
||
public String getResource() { | ||
return resource; | ||
} | ||
|
||
public void setResource(String resource) { | ||
this.resource = resource; | ||
} | ||
|
||
public String getDecisionRequirementsDefinitionId() { | ||
return decisionRequirementsDefinitionId; | ||
} | ||
|
||
public void setDecisionRequirementsDefinitionId(String decisionRequirementsDefinitionId) { | ||
this.decisionRequirementsDefinitionId = decisionRequirementsDefinitionId; | ||
} | ||
|
||
public String getDecisionRequirementsDefinitionKey() { | ||
return decisionRequirementsDefinitionKey; | ||
} | ||
|
||
public void setDecisionRequirementsDefinitionKey(String decisionRequirementsDefinitionKey) { | ||
this.decisionRequirementsDefinitionKey = decisionRequirementsDefinitionKey; | ||
} | ||
|
||
public Integer getHistoryTimeToLive() { | ||
return historyTimeToLive; | ||
} | ||
|
||
public void setHistoryTimeToLive(Integer historyTimeToLive) { | ||
this.historyTimeToLive = historyTimeToLive; | ||
} | ||
|
||
public String getVersionTag() { | ||
return versionTag; | ||
} | ||
|
||
public void setVersionTag(String versionTag) { | ||
this.versionTag = versionTag; | ||
} | ||
|
||
public String getXml() { | ||
return xml; | ||
} | ||
|
||
public void setXml(String xml) { | ||
this.xml = xml; | ||
} | ||
} |
164 changes: 164 additions & 0 deletions
164
camunda-kafka-model/src/main/java/de/viadee/camunda/kafka/event/DecisionInstanceEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,164 @@ | ||
package de.viadee.camunda.kafka.event; | ||
|
||
import java.util.Date; | ||
import java.util.List; | ||
|
||
/** | ||
* <p> | ||
* DecisionInstanceEvent class. | ||
* </p> | ||
* | ||
* | ||
* | ||
* @author viadee | ||
* | ||
* @version $Id: $Id | ||
*/ | ||
public class DecisionInstanceEvent extends HistoryEvent { | ||
|
||
private String decisionDefinitionId; | ||
private String decisionDefinitionKey; | ||
private String decisionDefinitionName; | ||
private Date evaluationTime; | ||
private Date removalTime; | ||
private String activityId; | ||
private String activityInstanceId; | ||
private String tenantId; | ||
private String userId; | ||
private String rootDecisionInstanceId; | ||
private String rootProcessInstanceId; | ||
private String decisionRequirementsDefinitionId; | ||
private String decisionRequirementsDefinitionKey; | ||
private Double collectResultValue; | ||
private List<DecisionInstanceInputEvent> inputs; | ||
private List<DecisionInstanceOutputEvent> outputs; | ||
|
||
public String getDecisionDefinitionId() { | ||
return decisionDefinitionId; | ||
} | ||
|
||
public void setDecisionDefinitionId(String decisionDefinitionId) { | ||
this.decisionDefinitionId = decisionDefinitionId; | ||
} | ||
|
||
public String getDecisionDefinitionKey() { | ||
return decisionDefinitionKey; | ||
} | ||
|
||
public void setDecisionDefinitionKey(String decisionDefinitionKey) { | ||
this.decisionDefinitionKey = decisionDefinitionKey; | ||
} | ||
|
||
public String getDecisionDefinitionName() { | ||
return decisionDefinitionName; | ||
} | ||
|
||
public void setDecisionDefinitionName(String decisionDefinitionName) { | ||
this.decisionDefinitionName = decisionDefinitionName; | ||
} | ||
|
||
public Date getEvaluationTime() { | ||
return evaluationTime; | ||
} | ||
|
||
public void setEvaluationTime(Date evaluationTime) { | ||
this.evaluationTime = evaluationTime; | ||
} | ||
|
||
public Date getRemovalTime() { | ||
return removalTime; | ||
} | ||
|
||
public void setRemovalTime(Date removalTime) { | ||
this.removalTime = removalTime; | ||
} | ||
|
||
public String getActivityId() { | ||
return activityId; | ||
} | ||
|
||
public void setActivityId(String activityId) { | ||
this.activityId = activityId; | ||
} | ||
|
||
public String getActivityInstanceId() { | ||
return activityInstanceId; | ||
} | ||
|
||
public void setActivityInstanceId(String activityInstanceId) { | ||
this.activityInstanceId = activityInstanceId; | ||
} | ||
|
||
public String getTenantId() { | ||
return tenantId; | ||
} | ||
|
||
public void setTenantId(String tenantId) { | ||
this.tenantId = tenantId; | ||
} | ||
|
||
public String getUserId() { | ||
return userId; | ||
} | ||
|
||
public void setUserId(String userId) { | ||
this.userId = userId; | ||
} | ||
|
||
public String getRootDecisionInstanceId() { | ||
return rootDecisionInstanceId; | ||
} | ||
|
||
public void setRootDecisionInstanceId(String rootDecisionInstanceId) { | ||
this.rootDecisionInstanceId = rootDecisionInstanceId; | ||
} | ||
|
||
public String getRootProcessInstanceId() { | ||
return rootProcessInstanceId; | ||
} | ||
|
||
public void setRootProcessInstanceId(String rootProcessInstanceId) { | ||
this.rootProcessInstanceId = rootProcessInstanceId; | ||
} | ||
|
||
public String getDecisionRequirementsDefinitionId() { | ||
return decisionRequirementsDefinitionId; | ||
} | ||
|
||
public void setDecisionRequirementsDefinitionId(String decisionRequirementsDefinitionId) { | ||
this.decisionRequirementsDefinitionId = decisionRequirementsDefinitionId; | ||
} | ||
|
||
public String getDecisionRequirementsDefinitionKey() { | ||
return decisionRequirementsDefinitionKey; | ||
} | ||
|
||
public void setDecisionRequirementsDefinitionKey(String decisionRequirementsDefinitionKey) { | ||
this.decisionRequirementsDefinitionKey = decisionRequirementsDefinitionKey; | ||
} | ||
|
||
public Double getCollectResultValue() { | ||
return collectResultValue; | ||
} | ||
|
||
public void setCollectResultValue(Double collectResultValue) { | ||
this.collectResultValue = collectResultValue; | ||
} | ||
|
||
public List<DecisionInstanceInputEvent> getInputs() { | ||
return inputs; | ||
} | ||
|
||
public void setInputs(List<DecisionInstanceInputEvent> inputs) { | ||
this.inputs = inputs; | ||
} | ||
|
||
public List<DecisionInstanceOutputEvent> getOutputs() { | ||
return outputs; | ||
} | ||
|
||
public void setOutputs(List<DecisionInstanceOutputEvent> outputs) { | ||
this.outputs = outputs; | ||
} | ||
|
||
} |
107 changes: 107 additions & 0 deletions
107
...a-kafka-model/src/main/java/de/viadee/camunda/kafka/event/DecisionInstanceInputEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
package de.viadee.camunda.kafka.event; | ||
|
||
import java.util.Date; | ||
import java.util.Map; | ||
|
||
public class DecisionInstanceInputEvent { | ||
|
||
private String id; | ||
private String decisionInstanceId; | ||
private String clauseId; | ||
private String clauseName; | ||
private String errorMessage; | ||
private String type; | ||
private Date createTime; | ||
private Date removalTime; | ||
private String rootProcessInstanceId; | ||
private String value; | ||
private Map<String, Object> valueInfo; | ||
|
||
public String getId() { | ||
return id; | ||
} | ||
|
||
public void setId(String id) { | ||
this.id = id; | ||
} | ||
|
||
public String getDecisionInstanceId() { | ||
return decisionInstanceId; | ||
} | ||
|
||
public void setDecisionInstanceId(String decisionInstanceId) { | ||
this.decisionInstanceId = decisionInstanceId; | ||
} | ||
|
||
public String getClauseId() { | ||
return clauseId; | ||
} | ||
|
||
public void setClauseId(String clauseId) { | ||
this.clauseId = clauseId; | ||
} | ||
|
||
public String getClauseName() { | ||
return clauseName; | ||
} | ||
|
||
public void setClauseName(String clauseName) { | ||
this.clauseName = clauseName; | ||
} | ||
|
||
public String getErrorMessage() { | ||
return errorMessage; | ||
} | ||
|
||
public void setErrorMessage(String errorMessage) { | ||
this.errorMessage = errorMessage; | ||
} | ||
|
||
public String getType() { | ||
return type; | ||
} | ||
|
||
public void setType(String type) { | ||
this.type = type; | ||
} | ||
|
||
public Date getCreateTime() { | ||
return createTime; | ||
} | ||
|
||
public void setCreateTime(Date createTime) { | ||
this.createTime = createTime; | ||
} | ||
|
||
public Date getRemovalTime() { | ||
return removalTime; | ||
} | ||
|
||
public void setRemovalTime(Date removalTime) { | ||
this.removalTime = removalTime; | ||
} | ||
|
||
public String getRootProcessInstanceId() { | ||
return rootProcessInstanceId; | ||
} | ||
|
||
public void setRootProcessInstanceId(String rootProcessInstanceId) { | ||
this.rootProcessInstanceId = rootProcessInstanceId; | ||
} | ||
|
||
public String getValue() { | ||
return value; | ||
} | ||
|
||
public void setValue(String value) { | ||
this.value = value; | ||
} | ||
|
||
public Map<String, Object> getValueInfo() { | ||
return valueInfo; | ||
} | ||
|
||
public void setValueInfo(Map<String, Object> valueInfo) { | ||
this.valueInfo = valueInfo; | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wenn das das Einzige ist, was in dieser Datei geändert wird, dann m.E. reverten, damit sich nicht "so viel" ändert?