rez_core 2.2.87 → 2.2.88
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/dist/module/workflow/repository/action-data.repository.js +4 -1
- package/dist/module/workflow/repository/action-data.repository.js.map +1 -1
- package/dist/module/workflow/service/task.service.js +4 -0
- package/dist/module/workflow/service/task.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/module/workflow/repository/action-data.repository.ts +4 -1
- package/src/module/workflow/service/task.service.ts +5 -0
package/package.json
CHANGED
|
@@ -145,7 +145,7 @@ export class ActionDataRepository extends EntityServiceImpl {
|
|
|
145
145
|
|
|
146
146
|
if (!currentAction) {
|
|
147
147
|
// skip
|
|
148
|
-
|
|
148
|
+
return;
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
// Find the immediate previous action in the sequence
|
|
@@ -169,6 +169,7 @@ export class ActionDataRepository extends EntityServiceImpl {
|
|
|
169
169
|
currentAction.is_current = null as any;
|
|
170
170
|
currentAction.modified_date = new Date();
|
|
171
171
|
currentAction.modified_by = organization_id;
|
|
172
|
+
currentAction.start_time = null as any;
|
|
172
173
|
currentAction.resubmit_count = (currentAction.resubmit_count ?? 0) + 1;
|
|
173
174
|
|
|
174
175
|
await this.actionDataRepo.update(currentAction.id, currentAction);
|
|
@@ -177,6 +178,8 @@ export class ActionDataRepository extends EntityServiceImpl {
|
|
|
177
178
|
previousAction.is_current = 'Y';
|
|
178
179
|
previousAction.modified_date = new Date();
|
|
179
180
|
previousAction.modified_by = organization_id;
|
|
181
|
+
previousAction.end_time = null as any; // Reset end time
|
|
182
|
+
previousAction.is_done = true;
|
|
180
183
|
await this.actionDataRepo.update(previousAction.id, previousAction);
|
|
181
184
|
|
|
182
185
|
// reverse the status of tasks for the previous action
|
|
@@ -252,6 +252,11 @@ export class TaskService extends EntityServiceImpl {
|
|
|
252
252
|
task.task_status = task.status
|
|
253
253
|
? statusMap.get(String(task.status)) || null
|
|
254
254
|
: null;
|
|
255
|
+
|
|
256
|
+
task.action_name =
|
|
257
|
+
task.action_id === '0' || task.action_id === 0
|
|
258
|
+
? 'Generic'
|
|
259
|
+
: task.action_name;
|
|
255
260
|
}
|
|
256
261
|
|
|
257
262
|
// Normalize is_mandatory to '0'/'1' as string
|