@things-factory/worklist 6.1.12 → 6.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/worklist",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.13",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "dist-client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"@things-factory/shell": "^6.1.12",
|
|
39
39
|
"moment-timezone": "^0.5.40"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "8ba2dc3bff36890f7151ebee09a8e57d02cdb180"
|
|
42
42
|
}
|
|
@@ -15,13 +15,13 @@ export async function updateActivityInstanceState(id: string, context: ResolverC
|
|
|
15
15
|
relations: ['domain', 'activity', 'assigneeRole', 'supervisoryRole', 'updater', 'creator', 'starter', 'terminator']
|
|
16
16
|
})
|
|
17
17
|
|
|
18
|
-
activityInstance =
|
|
19
|
-
|
|
20
|
-
transaction: 'thread' /* change by transaction of activity thread */,
|
|
21
|
-
...(await evalActivityInstanceState(id, context))
|
|
22
|
-
})
|
|
18
|
+
activityInstance.transaction = 'thread' /* activity thread에 의해서 변경된 것임을 의미 */
|
|
19
|
+
Object.assign(activityInstance, await evalActivityInstanceState(id, context))
|
|
23
20
|
|
|
21
|
+
/* callback에서 업무적인 처리도 하고, activityInstance를 일부(주로 output) 수정할 수 있는 기회도 제공. */
|
|
24
22
|
await ActivityInstallations.callback(activityInstance.activity.name, activityInstance, context)
|
|
23
|
+
|
|
24
|
+
await tx.getRepository(ActivityInstance).save(activityInstance)
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
export async function evalActivityInstanceState(
|