add OrchestrationTask create time to fix the bug 95/107595/3
authorhetengjiao <hetengjiao@chinamobile.com>
Wed, 13 May 2020 03:21:44 +0000 (11:21 +0800)
committerHE TENGJIAO <hetengjiao@chinamobile.com>
Wed, 13 May 2020 03:30:16 +0000 (03:30 +0000)
Issue-ID: SO-2919

Change-Id: Icbbe1e921931d22e46a204d00a36074894e55deb
Signed-off-by: hetengjiao <hetengjiao@chinamobile.com>
bpmn/so-bpmn-infrastructure-common/src/main/groovy/org/onap/so/bpmn/infrastructure/scripts/HandleOrchestrationTask.groovy

index 89490ff..0f15717 100644 (file)
@@ -103,6 +103,7 @@ class HandleOrchestrationTask extends AbstractServiceTaskProcessor {
             task.setName(taskName)
             task.setStatus(taskStatus)
             task.setIsManual(isManual)
+            task.setCreatedTime(new Date())
             task.setParams(paramJson)
             ObjectMapper objectMapper = new ObjectMapper()
             payload = objectMapper.writeValueAsString(task)