@acorex/modules 20.6.1 → 20.6.2

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.
@@ -1801,43 +1801,7 @@ class AXMWorkflowDefinitionProvider {
1801
1801
  * @returns Workflow definition or null if not found
1802
1802
  */
1803
1803
  async get(name) {
1804
- try {
1805
- // Dynamic import of JSON file
1806
- // The path is relative to the provider file location
1807
- const module = await import(`./definitions/${name}.json`);
1808
- const jsonDefinition = module.default || module;
1809
- // Use name from JSON, or fallback to filename
1810
- const workflowName = jsonDefinition.name || name;
1811
- // Validate that name matches filename (if provided)
1812
- if (jsonDefinition.name && jsonDefinition.name !== name) {
1813
- console.warn(`[AXMWorkflowDefinitionProvider] Name mismatch: filename is ${name}, but JSON has name ${jsonDefinition.name}. Using name from JSON.`);
1814
- }
1815
- // Convert JSON definition to workflow definition (without system fields)
1816
- // System fields are managed by entity system
1817
- const definition = {
1818
- // From JSON - name is the unique key
1819
- name: workflowName,
1820
- title: jsonDefinition.title || null,
1821
- description: jsonDefinition.description || null,
1822
- variables: jsonDefinition.variables || [],
1823
- inputs: jsonDefinition.inputs || [],
1824
- outputs: jsonDefinition.outputs || [],
1825
- outcomes: jsonDefinition.outcomes || [],
1826
- customProperties: jsonDefinition.customProperties || {},
1827
- options: jsonDefinition.options,
1828
- root: jsonDefinition.root,
1829
- };
1830
- return definition;
1831
- }
1832
- catch (error) {
1833
- // File not found or invalid JSON
1834
- if (error?.message?.includes('Cannot find module')) {
1835
- console.debug(`[AXMWorkflowDefinitionProvider] Definition not found: ${name}`);
1836
- return null;
1837
- }
1838
- console.error(`[AXMWorkflowDefinitionProvider] Failed to load definition ${name}:`, error);
1839
- return null;
1840
- }
1804
+ throw new Error('Not implemented');
1841
1805
  }
1842
1806
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AXMWorkflowDefinitionProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1843
1807
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AXMWorkflowDefinitionProvider }); }