From c645cb8f522294ab1a06be3d83fbee4af1b532e2 Mon Sep 17 00:00:00 2001 From: "Rahul Sharma (153216)" Date: Fri, 6 Oct 2017 17:44:28 -0400 Subject: Fix for the LCM Restart Request date issue Issue-Id: APPC-262 Change-Id: I34455f902d55ff0c97ca1dc81e7388da388d735e Signed-off-by: Rahul Sharma --- .../java/org/openecomp/appc/workflow/impl/WorkFlowManagerImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'appc-dispatcher/appc-workflow-management/appc-workflow-management-core') diff --git a/appc-dispatcher/appc-workflow-management/appc-workflow-management-core/src/main/java/org/openecomp/appc/workflow/impl/WorkFlowManagerImpl.java b/appc-dispatcher/appc-workflow-management/appc-workflow-management-core/src/main/java/org/openecomp/appc/workflow/impl/WorkFlowManagerImpl.java index 542d8137e..cbf7f975a 100644 --- a/appc-dispatcher/appc-workflow-management/appc-workflow-management-core/src/main/java/org/openecomp/appc/workflow/impl/WorkFlowManagerImpl.java +++ b/appc-dispatcher/appc-workflow-management/appc-workflow-management-core/src/main/java/org/openecomp/appc/workflow/impl/WorkFlowManagerImpl.java @@ -43,6 +43,7 @@ import org.onap.ccsdk.sli.core.sli.SvcLogicException; import org.onap.ccsdk.sli.core.sli.provider.SvcLogicService; import java.text.SimpleDateFormat; +import java.util.Date; import java.util.Enumeration; import java.util.Map; import java.util.Properties; @@ -165,7 +166,7 @@ public class WorkFlowManagerImpl implements WorkFlowManager{ } private void populateDGContext(Properties workflowParams, WorkflowRequest workflowRequest) { - workflowParams.put("input.common-header.timestamp",new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").format(workflowRequest.getRequestContext().getCommonHeader().getTimeStamp())); + workflowParams.put("input.common-header.timestamp",new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").format(Date.from(workflowRequest.getRequestContext().getCommonHeader().getTimeStamp()))); workflowParams.put("input.common-header.api-ver",workflowRequest.getRequestContext().getCommonHeader().getApiVer()); workflowParams.put("input.common-header.request-id",workflowRequest.getRequestContext().getCommonHeader().getRequestId()); workflowParams.put("input.common-header.originator-id",workflowRequest.getRequestContext().getCommonHeader().getOriginatorId()); -- cgit 1.2.3-korg