We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3634e4a commit 6df5259Copy full SHA for 6df5259
src/main/java/org/folio/rest/delegate/SetupDelegate.java
@@ -22,6 +22,7 @@
22
public class SetupDelegate extends AbstractRuntimeDelegate {
23
24
private final static String TIMESTAMP_VARIABLE_NAME = "timestamp";
25
+ private final static String TENANT_VARIABLE_NAME = "tenantId";
26
27
@Autowired
28
private ScriptEngineService scriptEngineService;
@@ -53,6 +54,7 @@ public void execute(DelegateExecution execution) throws Exception {
53
54
String timestamp = String.valueOf(System.currentTimeMillis());
55
56
execution.setVariable(TIMESTAMP_VARIABLE_NAME, timestamp);
57
+ execution.setVariable(TENANT_VARIABLE_NAME, execution.getTenantId());
58
59
logger.info("loading scripts");
60
0 commit comments