rez_core 2.2.117 → 2.2.118

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": "rez_core",
3
- "version": "2.2.117",
3
+ "version": "2.2.118",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -149,6 +149,10 @@ export class PopulateWorkflowService extends EntityServiceImpl {
149
149
  );
150
150
  const [workflows, stageGroups, stages] = factoryData;
151
151
 
152
+ const status_name = await this.dataSource.query(
153
+ `SELECT * FROM cr_list_master_items WHERE code='STATUS_ACTIVE' AND organization_id = 1`,
154
+ );
155
+
152
156
  // === 1. Workflow mapping
153
157
  const workflowIdMap: Record<number, number> = {};
154
158
  for (const row of workflows) {
@@ -159,6 +163,7 @@ export class PopulateWorkflowService extends EntityServiceImpl {
159
163
  organization_id,
160
164
  level_id: organization_id,
161
165
  entity_type: 'WRFW',
166
+ status: status_name[0].name,
162
167
  },
163
168
  loggedInUser,
164
169
  );
@@ -185,6 +190,7 @@ export class PopulateWorkflowService extends EntityServiceImpl {
185
190
  organization_id,
186
191
  level_id: organization_id,
187
192
  entity_type: 'STGP',
193
+ status: status_name[0].name,
188
194
  },
189
195
  loggedInUser,
190
196
  );
@@ -207,6 +213,7 @@ export class PopulateWorkflowService extends EntityServiceImpl {
207
213
  organization_id,
208
214
  level_id: organization_id,
209
215
  entity_type: 'STG',
216
+ status: status_name[0].name,
210
217
  },
211
218
  loggedInUser,
212
219
  );
@@ -294,6 +301,7 @@ export class PopulateWorkflowService extends EntityServiceImpl {
294
301
  level_id: organization_id,
295
302
  entity_type: 'ACTN',
296
303
  form: formActionCategory.length > 0 ? formViewMaster[0]?.id : null,
304
+ status: status_name[0].name,
297
305
  },
298
306
  loggedInUser,
299
307
  );