提交 8c06ce4f 编写于 作者: M Miguel Ruiz 提交者: mergify[bot]

AAE-82 Add appVersion to IntegrationContext (#3031)

上级 01388cd1
......@@ -36,7 +36,7 @@ public class IntegrationContextImpl implements IntegrationContext {
private String clientId;
private String clientName;
private String clientType;
private String appVersion;
private String connectorType;
public IntegrationContextImpl() {
......@@ -169,4 +169,12 @@ public class IntegrationContextImpl implements IntegrationContext {
this.parentProcessInstanceId = parentProcessInstanceId;
}
@Override
public String getAppVersion() {
return appVersion;
}
public void setAppVersion(String appVersion) {
this.appVersion = appVersion;
}
}
......@@ -36,6 +36,8 @@ public interface IntegrationContext {
String getConnectorType();
String getAppVersion();
String getClientId();
String getClientName();
String getClientType();
......
......@@ -16,6 +16,8 @@
package org.activiti.runtime.api.connector;
import java.util.Objects;
import org.activiti.api.process.model.IntegrationContext;
import org.activiti.api.runtime.model.impl.IntegrationContextImpl;
import org.activiti.bpmn.model.ServiceTask;
......@@ -59,6 +61,8 @@ public class IntegrationContextBuilder {
if (processInstance != null) {
integrationContext.setParentProcessInstanceId(processInstance.getParentProcessInstanceId());
integrationContext.setAppVersion(Objects.toString(processInstance.getAppVersion(),"1"));
}
// Let's try to resolve process definition attributes
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册