Skip to content

The open alternative to Salesforce, designed for AI.

Show application workflows in the workflows list (#27562)

Thomas Trompette21a58879e43e
diff --git a/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/__tests__/from-workflow-manifest-to-universal-flat-workflow-or-throw.util.spec.ts b/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/__tests__/from-workflow-manifest-to-universal-flat-workflow-or-throw.util.spec.ts
index 53d6d32cca8..92521249b16 100644
--- a/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/__tests__/from-workflow-manifest-to-universal-flat-workflow-or-throw.util.spec.ts
+++ b/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/__tests__/from-workflow-manifest-to-universal-flat-workflow-or-throw.util.spec.ts
@@ -61,6 +61,7 @@ describe('application workflow definitions', () => {
expect(workflow.lastPublishedCoreWorkflowVersionId).toBe(version.id);
expect(version.coreWorkflowId).toBe(workflow.id);
expect(workflow.workspaceWorkflowId).toBeNull();
+ expect(workflow.isSystem).toBe(false);
expect(version.workspaceWorkflowVersionId).toBeNull();
expect(version.status).toBe('ACTIVE');
expect(version.steps?.[0].settings.input).toEqual({
diff --git a/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/from-workflow-manifest-to-universal-flat-workflow-or-throw.util.ts b/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/from-workflow-manifest-to-universal-flat-workflow-or-throw.util.ts
index 9ce3e9587fc..df86d77f98d 100644
--- a/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/from-workflow-manifest-to-universal-flat-workflow-or-throw.util.ts
+++ b/packages/twenty-server/src/engine/core-modules/application/application-manifest/converters/from-workflow-manifest-to-universal-flat-workflow-or-throw.util.ts
@@ -82,7 +82,7 @@ export const fromWorkflowManifestToUniversalFlatWorkflowOrThrow = ({
universalIdentifier: definition.universalIdentifier,
applicationUniversalIdentifier,
name: definition.name,
- isSystem: true,
+ isSystem: false,
visibility: WorkflowVisibility.WORKSPACE,
createdByUserWorkspaceId: null,
workspaceWorkflowId: null,