-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
fix(client) don't expose executionId to public API #4611
Changes from 5 commits
87c3f8a
2530904
3e1eed8
5fc8dfd
b4d8368
0aeec49
468cc62
bb4dc29
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ | |
import org.camunda.bpm.client.task.ExternalTask; | ||
import org.camunda.bpm.client.variable.impl.TypedValueField; | ||
import org.camunda.bpm.client.variable.impl.VariableValue; | ||
import org.camunda.bpm.client.variable.impl.value.DeferredFileValueImpl; | ||
import org.camunda.bpm.client.variable.value.DeferredFileValue; | ||
import org.camunda.bpm.engine.variable.VariableMap; | ||
import org.camunda.bpm.engine.variable.Variables; | ||
|
@@ -258,8 +259,8 @@ public <T> T getVariable(String variableName) { | |
|
||
VariableValue variableValue = receivedVariableMap.get(variableName); | ||
if (variableValue != null) { | ||
if(variableValue.getTypedValue() instanceof DeferredFileValue) { | ||
DeferredFileValue deferredFileValue = (DeferredFileValue) variableValue.getTypedValue(); | ||
if(variableValue.getTypedValue() instanceof DeferredFileValueImpl) { | ||
DeferredFileValueImpl deferredFileValue = (DeferredFileValueImpl) variableValue.getTypedValue(); | ||
deferredFileValue.setExecutionId(this.executionId); | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ❓ Can't we get rid of this code now that we pass the execution id to |
||
value = (T) variableValue.getValue(); | ||
|
@@ -300,8 +301,8 @@ public <T extends TypedValue> T getVariableTyped(String variableName, boolean de | |
VariableValue variableValue = receivedVariableMap.get(variableName); | ||
if (variableValue != null) { | ||
typedValue = variableValue.getTypedValue(deserializeObjectValues); | ||
if(typedValue instanceof DeferredFileValue) { | ||
DeferredFileValue deferredFileValue = (DeferredFileValue) typedValue; | ||
if(typedValue instanceof DeferredFileValueImpl) { | ||
DeferredFileValueImpl deferredFileValue = (DeferredFileValueImpl) typedValue; | ||
deferredFileValue.setExecutionId(this.executionId); | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ❓ Can't we get rid of this code now that we pass the execution id to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let me check. |
||
} | ||
|
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.
🔧 Let's keep using a white box test approach to a minimum. A black box should be the way to go.
We can fall back on white box tests only when a black box test is too difficult to achieve.