@@ -38,9 +38,8 @@ public SendPingMessage(ProcessPluginApi api)
3838 @ Override
3939 protected Stream <ParameterComponent > getAdditionalInputParameters (DelegateExecution execution , Variables variables )
4040 {
41- String downloadResourceReference = variables
42- .getString (ExecutionVariables .DOWNLOAD_RESOURCE_REFERENCE .getValue ());
43- long downloadResourceSizeBytes = variables .getLong (ExecutionVariables .DOWNLOAD_RESOURCE_SIZE_BYTES .getValue ());
41+ String downloadResourceReference = variables .getString (ExecutionVariables .downloadResourceReference .name ());
42+ long downloadResourceSizeBytes = variables .getLong (ExecutionVariables .downloadResourceSizeBytes .name ());
4443
4544 Stream <ParameterComponent > downloadResourceReferenceStream = downloadResourceReference == null ? Stream .empty ()
4645 : Stream .of (DownloadResourceReferenceGenerator .create (downloadResourceReference ));
@@ -63,7 +62,7 @@ protected void sendTask(DelegateExecution execution, Variables variables, Target
6362 additionalInputParameters );
6463 if (taskId != null )
6564 {
66- execution .setVariableLocal (ExecutionVariables .PING_TASK_ID . getValue (), taskId .getIdPart ());
65+ execution .setVariableLocal (ExecutionVariables .pingTaskId . name (), taskId .getIdPart ());
6766 }
6867 }
6968
@@ -82,8 +81,8 @@ protected void handleSendTaskError(DelegateExecution execution, Variables variab
8281 ProcessError error = SendTaskErrorConverter .convert (exception ,
8382 "Sending ping message to " + target .getEndpointUrl ());
8483
85- execution .setVariableLocal (ExecutionVariables .ERROR . getValue (), new ProcessErrorValueImpl (error ));
86- execution .setVariableLocal (ExecutionVariables .STATUS_CODE . getValue (), CodeSystem .DsfPing .Code .ERROR .getValue ());
84+ execution .setVariableLocal (ExecutionVariables .error . name (), new ProcessErrorValueImpl (error ));
85+ execution .setVariableLocal (ExecutionVariables .statusCode . name (), CodeSystem .DsfPing .Code .ERROR .getValue ());
8786
8887 logger .info ("Request to {} resulted in error: {}" , target .getEndpointUrl (), error .message ());
8988 }
0 commit comments