Implements Process Services form methods
import { FormCloudService } from '@alfresco/adf-process-services-cloud';
@Component(...)
class MyComponent {
constructor(formCloudService: FormCloudService) {}
}
completeTaskForm(appName: string
, taskId: string
, processInstanceId: string
, formId: string
, formValues: FormValues
, outcome: string
, version: number
): Observable
<
TaskDetailsCloudModel
>
Completes a task form.
string
- Name of the appstring
- ID of the target taskstring
- ID of processInstancestring
- ID of the form to completeFormValues
- Form values objectstring
- Form outcomenumber
- of the formObservable
<
TaskDetailsCloudModel
>
- Updated task detailscreateTemporaryRawRelatedContent(file: any
, nodeId: string
, contentHost: string
): Observable
<any>
any
- string
- string
- Observable
<any>
- getBasePath(appName: string
): string
string
- string
- getForm(appName: string
, formKey: string
, version?: number
): Observable
<
FormContent
>
Gets a form definition.
string
- Name of the appstring
- key of the target tasknumber
- (Optional) Version of the formObservable
<
FormContent
>
- Form definitiongetRestWidgetData(formName: string
, widgetId: string
, body: any
= {}
): Observable
<
FormFieldOption
[]>
string
- string
- any
- Observable
<
FormFieldOption
[]>
- getTask(appName: string
, taskId: string
): Observable
<
TaskDetailsCloudModel
>
Gets details of a task
string
- Name of the appstring
- ID of the target taskObservable
<
TaskDetailsCloudModel
>
- Details of the taskgetTaskForm(appName: string
, taskId: string
, version?: number
): Observable
<any>
Gets the form definition of a task.
string
- Name of the appstring
- ID of the target tasknumber
- (Optional) Version of the formObservable
<any>
- Form definitiongetTaskVariables(appName: string
, taskId: string
): Observable
<
TaskVariableCloud
[]>
Gets the variables of a task.
string
- Name of the appstring
- ID of the target taskObservable
<
TaskVariableCloud
[]>
- Task variablesparseForm(json: any
, data?: TaskVariableCloud
[]
, readOnly: boolean
= false
): FormModel
Parses JSON data to create a corresponding form.
any
- JSON data to create the formTaskVariableCloud
[]
- (Optional) Values for the form's fieldsboolean
- Toggles whether or not the form should be read-onlyFormModel
- Form created from the JSON specificationsaveTaskForm(appName: string
, taskId: string
, processInstanceId: string
, formId: string
, values: FormValues
): Observable
<
TaskDetailsCloudModel
>
Saves a task form.
string
- Name of the appstring
- ID of the target taskstring
- ID of processInstancestring
- ID of the form to saveFormValues
- Form values objectObservable
<
TaskDetailsCloudModel
>
- Updated task details© 2023 Alfresco Software, Inc. All Rights Reserved.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.