mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-1880] processDefinitionId parameter in adf-start-process (#2848)
* processDefinitionId parameter in adf-start-process * fix test * fix test
This commit is contained in:
@@ -18,6 +18,7 @@ Starts a process.
|
||||
| --- | --- |
|
||||
| appId | (required): Limit the list of processes which can be started to those contained in the specified app |
|
||||
| name | (optional) name to assign to the current process |
|
||||
| processDefinitionId| (optional) definition ID of the process to start |
|
||||
| variables | Variables in input to the process [RestVariable](https://github.com/Alfresco/alfresco-js-api/tree/master/src/alfresco-activiti-rest-api/docs/RestVariable.md)|
|
||||
| values | Parameter to pass form field values in the start form if is associated |
|
||||
|
||||
@@ -29,6 +30,24 @@ Starts a process.
|
||||
| cancel | Raised when the process canceled |
|
||||
| error | Raised when the start process fail |
|
||||
|
||||
### Details
|
||||
|
||||
- If your app has only one processDefintion it will be automaticaly gather from the ***adf-start-process***.
|
||||
- If your app has multiple processDefintion and you didn't define processDefinitionId parameter a drop down will allow you to select which use
|
||||
- If your app has multiple processDefintion and you defined the processDefinitionId parameter the ***adf-start-process*** will be automatically instantiated with the selected process.
|
||||
|
||||
### Start a process with processDefinitionId
|
||||
|
||||
```html
|
||||
<adf-start-process
|
||||
[appId]="YOUR_APP_ID"
|
||||
[processName]="PROCESS_NAME"
|
||||
[processDefinitionId]="PROCESS_DEF_ID">
|
||||
</adf-start-process>
|
||||
```
|
||||
|
||||
If you have more then one process in yor app you can in this way preselect which is the process to start
|
||||
|
||||
|
||||
### Custom data example
|
||||
|
||||
|
Reference in New Issue
Block a user