### Start Application Source: https://www.alfresco.com/abn/adf/docs/upgrade-guide/upgrade32-33 Command to start the ADF application after upgrades and dependency installations. This command is used to run the development server. ```bash npm run start ``` -------------------------------- ### Launch Alfresco Content App (Open Source) Source: https://www.alfresco.com/abn/adf/docs/getting-started Installs project dependencies using npm and starts the front-end application in development mode. The application will be accessible at `http://localhost:4200`. ```bash npm install npm start ``` -------------------------------- ### Start Application Source: https://www.alfresco.com/abn/adf/docs/user-guide/debug-test-build-and-promote Starts the application. For ADW, it allows specifying a distribution (e.g., content-ce, content-ee) and an optional production flag. For other ADF apps, 'npm start' is sufficient. ```bash npm start [prod] ``` ```bash npm start ``` -------------------------------- ### Start Application Source: https://www.alfresco.com/abn/adf/docs/upgrade-guide/upgrade42-43 Command to start the ADF application after completing the upgrade process. This allows verification of the updated project. ```bash npm run start ``` -------------------------------- ### Get Task List Filters Example Source: https://www.alfresco.com/abn/adf/docs/process-services/services/task-filter Example demonstrating how to use the getTaskListFilters method from the TaskFilterService to retrieve and log task filters for a specific process application. ```TypeScript import { TaskFilterService, FilterRepresentationModel } from '@alfresco/adf-process-services'; class SomePageComponent implements OnInit { constructor(private taskFilterService: TaskFilterService) { } ngOnInit() { const processAppId = 2; this.taskFilterService.getTaskListFilters(processAppId).subscribe( (filters: FilterRepresentationModel[]) => { console.log('Task filters: ', filters); }, error => { console.log('Error: ', error); }); } } ``` -------------------------------- ### ADF Start Process Component API Reference Source: https://www.alfresco.com/abn/adf/docs/process-services/components/start-process Comprehensive API documentation for the `adf-start-process` component. It details all available properties, their types, default values, and descriptions, enabling developers to configure and control process starting behavior. ```APIDOC adf-start-process Component API: Properties: - appId: number - (optional) Limit the list of processes that can be started to those contained in the specified app. - name: string - (optional) Name to assign to the current process. - processDefinitionName: string - (optional) Definition name of the process to start. - processFilterSelector: boolean - (optional) Parameter to enable selection of process when filtering. Defaults to true. - showSelectApplicationDropdown: boolean - (optional) Hide or show application selection dropdown. Defaults to false. - showSelectProcessDropdown: boolean - (optional) Hide or show the process selection dropdown. Defaults to true. - title: string - (optional) Define the header of the component. - values: FormValues - Parameter to pass form field values in the start form if one is associated. - variables: ProcessInstanceVariable[] - Variables in the input to the process RestVariable. ``` -------------------------------- ### Get Task List Filters Example Source: https://www.alfresco.com/abn/adf/docs/process-services-cloud/services/task-filter-cloud An example demonstrating how to use the `getTaskListFilters` method from the Task Filter Service. It subscribes to the observable returned by the method to retrieve and log task filters or handle errors. ```TypeScript this.taskFilterService.getTaskListFilters(appName).subscribe( (filters: TaskFilterCloudModel[]) => { console.log('Task filters: ', filters); }, error => { console.log('Error: ', error); }); ``` -------------------------------- ### Prefill Start Form Values with formValues Source: https://www.alfresco.com/abn/adf/docs/release-notes/relnote210 This TypeScript example shows how to construct a formValues object with various data types, including strings and objects for dropdowns. These values are used to prefill the fields of a process start form when the adf-start-process component is rendered. ```TypeScript const formValues: FormValues = { 'test_1': 'value_1', 'test_2': 'value_2', 'test_3': 'value_1', 'test_4': 'dropdown_id', 'test_5': 'dropdown_label', 'dropdown': {'id': 'dropdown_id', 'name': 'dropdown_label'} }; ``` -------------------------------- ### Start Application Source: https://www.alfresco.com/abn/adf/docs/tutorials/creating-your-first-adf-application Command to start the application using npm. This command initiates the development server and typically opens the application in a browser. ```Shell npm start ``` -------------------------------- ### Start Process with Variables Source: https://www.alfresco.com/abn/adf/docs/release-notes/relnote330 Demonstrates how to start a process using the `adf-cloud-start-process` component, passing process variables. This allows initiating a workflow with predefined data. ```html ``` -------------------------------- ### Get Task Details Example Source: https://www.alfresco.com/abn/adf/docs/process-services/services/tasklist Demonstrates how to retrieve details for a specific task instance using the `getTaskDetails` method and subscribe to the Observable response. ```TypeScript const taskInstanceId = '15303'; this.tasklistService.getTaskDetails(taskInstanceId).subscribe( (taskInstance: TaskDetailsModel) => { console.log('TaskInstance: ', taskInstance); }, error => { console.log('Error: ', error); }); ``` -------------------------------- ### Start Process Component Basic Usage Source: https://www.alfresco.com/abn/adf/docs/process-services/components/start-process Demonstrates how to use the adf-start-process component to initiate a process. It highlights key properties like appId, title, name, and how to control the application dropdown visibility. ```html ``` -------------------------------- ### Configure Alfresco Repository for File Attachments Source: https://www.alfresco.com/abn/adf/docs/process-services/components/start-process Example configuration for `app.config.json` to specify an Alfresco repository name, which is necessary if the repository ID is not 1 for attaching files to the start form. ```json { "application": { "name": "Alfresco ADF Application" }, "ecmHost": "http://{hostname}{:port}/ecm", "bpmHost": "http://{hostname}{:port}/bpm", "logLevel": "silent", "alfrescoRepositoryName": "alfresco-1002" } ``` -------------------------------- ### Start Task Component Usage Source: https://www.alfresco.com/abn/adf/docs/process-services/components/start-task Example of how to use the `adf-start-task` component in an Angular application to initiate a new task. It requires the application ID and allows setting a default task name. ```html ``` -------------------------------- ### Launch Alfresco Content App (Enterprise Edition) Source: https://www.alfresco.com/abn/adf/docs/getting-started Starts the Alfresco Content App using the enterprise configuration. This command assumes the `.env` file is correctly set up for the enterprise stack. ```bash npm start content-ee ``` -------------------------------- ### Get RTL Direction with UserPreferencesService Source: https://www.alfresco.com/abn/adf/docs/user-guide/rtl-support An Angular component example illustrating how to use `UserPreferencesService` to dynamically retrieve the current text orientation ('ltr' or 'rtl'). This is useful for components whose logic depends on the directionality of the displayed text. ```typescript import { Component, OnInit } from '@angular/core'; import { Direction } from '@angular/cdk/bidi'; import { UserPreferencesService } from '@alfresco/adf-core'; @Component({ selector: 'my-component', template: '...' // Component template }) class MyComponent implements OnInit { constructor( private userPreferencesService: UserPreferencesService) { } ngOnInit() { this.userPreferencesService .select('textOrientation') .subscribe((direction: Direction) => { console.log(direction); // Outputs 'ltr' or 'rtl' }); } } ``` -------------------------------- ### Start Application Source: https://www.alfresco.com/abn/adf/docs/upgrade-guide/upgrade37-38 Starts the ADF application development server. This command is used to verify the upgrade and check if the application runs correctly after the update process. ```bash npm run start ``` -------------------------------- ### Get Site Name from Node Path Source: https://www.alfresco.com/abn/adf/docs/content-services/services/sites This utility function searches for a site within the path of a given Node. If a site is found, its GUID is returned; otherwise, an empty string is returned. It takes a MinimalNode object as input. ```APIDOC getSiteNameFromNodePath(node: MinimalNode): string Looks for a site inside the path of a Node and returns its guid if it finds one. (return an empty string if no site is found) Parameters: node: MinimalNode - Node to look for parent site Returns: string - Site guid ``` -------------------------------- ### Install NVM Source: https://www.alfresco.com/abn/adf/docs/tutorials/nvm Command to download and execute the NVM installation script from GitHub. This is the primary method for installing NVM on your system. ```shell curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash ``` -------------------------------- ### Upgrade Guide Source: https://www.alfresco.com/abn/adf/docs/process-services/components/start-process Guides for upgrading Alfresco ADF from one version to another, outlining necessary steps and considerations. ```APIDOC UpgradeGuide: Description: Documentation for upgrading Alfresco ADF. Upgrade Paths: From 4.1.0 to 4.2.0 From 4.0.0 to 4.1.0 From 3.9.0 to 4.0.0 From 3.7.0 to 3.8.0 From 3.2.0 to 3.3.0 From 3.1.0 to 3.2.0 From 3.0.0 to 3.1.0 Each guide details the specific steps required for a successful version upgrade. ``` -------------------------------- ### Upgrade Guide Source: https://www.alfresco.com/abn/adf/docs/process-services-cloud/services/start-process-cloud Guides for upgrading Alfresco ADF from one version to another, outlining necessary steps and considerations. ```APIDOC UpgradeGuide: Description: Documentation for upgrading Alfresco ADF. Upgrade Paths: From 4.1.0 to 4.2.0 From 4.0.0 to 4.1.0 From 3.9.0 to 4.0.0 From 3.7.0 to 3.8.0 From 3.2.0 to 3.3.0 From 3.1.0 to 3.2.0 From 3.0.0 to 3.1.0 Each guide details the specific steps required for a successful version upgrade. ``` -------------------------------- ### Start Application Source: https://www.alfresco.com/abn/adf/docs/upgrade-guide/upgrade45-46 Command to start the ADF application after performing upgrade steps. This allows verification that the application runs correctly with the new ADF version. ```bash npm run start ``` -------------------------------- ### Start Process with Form Values Source: https://www.alfresco.com/abn/adf/docs/process-services/services/process Demonstrates how to initiate a process by supplying specific values for its start form. This method is used when the process has a defined start form and requires data to be passed into its fields. ```TypeScript const processDefinitionId = 'InvoiceApprovalProcess:2:21'; const name = 'Sample Invoice Process'; const outcome = null; const startFormValues = { approver: '[email\u00a0protected]', companyemail: '[email\u00a0protected]', invoicetobeapproved: null }; this.processService.startProcess(processDefinitionId, name, outcome, startFormValues) .subscribe( (processInstance: ProcessInstance) => { console.log('ProcessInstance: ', processInstance); }, error => { console.log('Error: ', error); }); ``` -------------------------------- ### Upgrade Guide Source: https://www.alfresco.com/abn/adf/docs/getting-started Guides for upgrading Alfresco ADF from one version to another, outlining necessary steps and considerations. ```APIDOC UpgradeGuide: Description: Documentation for upgrading Alfresco ADF. Upgrade Paths: From 4.1.0 to 4.2.0 From 4.0.0 to 4.1.0 From 3.9.0 to 4.0.0 From 3.7.0 to 3.8.0 From 3.2.0 to 3.3.0 From 3.1.0 to 3.2.0 From 3.0.0 to 3.1.0 Each guide details the specific steps required for a successful version upgrade. ``` -------------------------------- ### Install Dependencies Source: https://www.alfresco.com/abn/adf/docs/user-guide/debug-test-build-and-promote Installs all necessary project dependencies. This command is standard for any Angular application. ```bash npm install ``` -------------------------------- ### Upgrade Guide Source: https://www.alfresco.com/abn/adf/docs/process-services-cloud/services/start-process-cloud Guides for upgrading Alfresco ADF from one version to another, outlining necessary steps and considerations. ```APIDOC UpgradeGuide: Description: Documentation for upgrading Alfresco ADF. Upgrade Paths: From 4.1.0 to 4.2.0 From 4.0.0 to 4.1.0 From 3.9.0 to 4.0.0 From 3.7.0 to 3.8.0 From 3.2.0 to 3.3.0 From 3.1.0 to 3.2.0 From 3.0.0 to 3.1.0 Each guide details the specific steps required for a successful version upgrade. ``` -------------------------------- ### Manual Dependency Installation Source: https://www.alfresco.com/abn/adf/docs/upgrade-guide/upgrade31-32 Command to install project dependencies after manually updating the package.json file. ```bash npm install ``` -------------------------------- ### Install pdfjs-dist Source: https://www.alfresco.com/abn/adf/docs/content-services/components/alfresco-viewer Installs the pdfjs-dist package, which is required for PDF rendering capabilities within the Alfresco Viewer. ```bash npm install pdfjs-dist ``` -------------------------------- ### Basic Usage of Process Instance List Source: https://www.alfresco.com/abn/adf/docs/process-services/components/process-list Demonstrates how to use the `adf-process-instance-list` component with basic input parameters like `appId` and `state`. ```html ``` -------------------------------- ### Start Application Source: https://www.alfresco.com/abn/adf/docs/upgrade-guide/upgrade26-30 Command to start the Alfresco ADF application after updates. This typically runs a development server. ```bash npm run start ```