* increase timeout and modify login async * run e2e if testing is changed * improve cdk fix * fix travis update projects * disable ghostMode lite server * lint fix * fix timeout * multiple try * Update content-services-e2e.sh * Update search-e2e.sh * Update process-services-e2e.sh * Update core-e2e.sh * Update protractor.conf.ts * fix unit * remove async * increqase notification time * 3 parallel * dix path issue in save * small refactor protractor ts * fix save * create license check first script adf cli * modify regex check * refactor notification history component * decrease notification * fix notification message problem * fix test * update packages wit high risk * revert cahnge login sso e2e * fix dep * fix documentation duplication and issue * fix after review * fix after review * try 6 parallel test * back to 3 parallel test no real time improve with 6
6.6 KiB
Title, Added, Status, Last reviewed
Title | Added | Status | Last reviewed |
---|---|---|---|
Form cloud service | v3.2.0 | Active | 2019-04-12 |
Form cloud service
Implements Process Services form methods
Basic Usage
import { FormCloudService } from '@alfresco/adf-process-services-cloud';
@Component(...)
class MyComponent {
constructor(formCloudService: FormCloudService) {}
}
Class members
Methods
-
completeTaskForm(appName:
string
, taskId:string
, formId:string
, formValues:FormValues
, outcome:string
):Observable
<
TaskDetailsCloudModel
>
Completes a task form.- appName:
string
- Name of the app - taskId:
string
- ID of the target task - formId:
string
- ID of the form to complete - formValues:
FormValues
- Form values object - outcome:
string
- (Optional) Form outcome - Returns
Observable
<
TaskDetailsCloudModel
>
- Updated task details
- appName:
-
createTemporaryRawRelatedContent(file:
any
, nodeId:any
):Observable
<any>
- file:
any
- - nodeId:
any
- - Returns
Observable
<any>
-
- file:
-
getBasePath(appName:
string
):string
- appName:
string
- - Returns
string
-
- appName:
-
getDropDownJsonData(url:
string
):Observable
<
FormFieldOption
[]>
Parses JSON data to create a corresponding form.- url:
string
- String data to make the request - Returns
Observable
<
FormFieldOption
[]>
- Array of FormFieldOption object
- url:
-
getForm(appName:
string
, taskId:string
):Observable
<any>
Gets a form definition.- appName:
string
- Name of the app - taskId:
string
- ID of the target task - Returns
Observable
<any>
- Form definition
- appName:
-
getProcessStorageFolderTask(appName:
string
, taskId:string
):Observable
<any>
- appName:
string
- - taskId:
string
- - Returns
Observable
<any>
-
- appName:
-
getTask(appName:
string
, taskId:string
):Observable
<
TaskDetailsCloudModel
>
Gets details of a task- appName:
string
- Name of the app - taskId:
string
- ID of the target task - Returns
Observable
<
TaskDetailsCloudModel
>
- Details of the task
- appName:
-
getTaskForm(appName:
string
, taskId:string
):Observable
<any>
Gets the form definition of a task.- appName:
string
- Name of the app - taskId:
string
- ID of the target task - Returns
Observable
<any>
- Form definition
- appName:
-
getTaskVariables(appName:
string
, taskId:string
):Observable
<
TaskVariableCloud
[]>
Gets the variables of a task.- appName:
string
- Name of the app - taskId:
string
- ID of the target task - Returns
Observable
<
TaskVariableCloud
[]>
- Task variables
- appName:
-
parseForm(json:
any
, data?:TaskVariableCloud
[]
, readOnly:boolean
=false
):FormCloud
Parses JSON data to create a corresponding form.- json:
any
- JSON data to create the form - data:
TaskVariableCloud
[]
- (Optional) Values for the form's fields - readOnly:
boolean
- Toggles whether or not the form should be read-only - Returns
FormCloud
- Form created from the JSON specification
- json:
-
saveTaskForm(appName:
string
, taskId:string
, formId:string
, formValues:FormValues
):Observable
<
TaskDetailsCloudModel
>
Saves a task form.- appName:
string
- Name of the app - taskId:
string
- ID of the target task - formId:
string
- ID of the form to save - formValues:
FormValues
- Form values object - Returns
Observable
<
TaskDetailsCloudModel
>
- Updated task details
- appName: