@ApiController public class ProcessDefinitionController extends Object
Provides public REST API for com.edorasware.commons.core.entity.WorkObjectDefinition manipulation
| Constructor and Description | 
|---|
ProcessDefinitionController(WorkObjectDefinitionManager workObjectDefinitionManager,
                           FormDefinitionManager formDefinitionManager)  | 
| Modifier and Type | Method and Description | 
|---|---|
QueryResponse | 
getEntityTemplatesByType(String nameFilter,
                        String modelId,
                        String caseId,
                        Integer start,
                        Integer size)
Returns all the process definitions matching the provided name filter or model global id. 
 | 
ValueMap | 
getInstance(String ambiguousWorkObjectDefinitionId,
           String view,
           List<String> fields)
Returns the process definition matching the id. 
 | 
Map<String,Object> | 
getProcessInitFormDefinition(String modelId,
                            Locale locale)  | 
public ProcessDefinitionController(WorkObjectDefinitionManager workObjectDefinitionManager, FormDefinitionManager formDefinitionManager)
@RequestMapping(value={"/process-definitions","/v1/process-definitions"},
                method=GET,
                produces="application/json")
 @ResponseBody
public QueryResponse getEntityTemplatesByType(@RequestParam(required=false,defaultValue="")
                                                                                                                                                                                                                String nameFilter,
                                                                                                                                                                                                                @RequestParam(required=false)
                                                                                                                                                                                                                String modelId,
                                                                                                                                                                                                                @RequestParam(required=false)
                                                                                                                                                                                                                String caseId,
                                                                                                                                                                                                                @RequestParam(required=false)
                                                                                                                                                                                                                Integer start,
                                                                                                                                                                                                                @RequestParam(required=false,defaultValue="50")
                                                                                                                                                                                                                Integer size)
Returns all the process definitions matching the provided name filter or model global id.
nameFilter - query to search for the typed textmodelId - query definitions based on a global model idcaseId - query definitions based on the restrictions of a case id or case global id@RequestMapping(value={"/process-definitions/{ambiguousWorkObjectDefinitionId}","/v1/process-definitions/{ambiguousWorkObjectDefinitionId}"},
                method=GET,
                produces="application/json")
 @ResponseBody
public ValueMap getInstance(@PathVariable
                                                                                                                                                                                                                                                                  String ambiguousWorkObjectDefinitionId,
                                                                                                                                                                                                                                                                  @RequestParam(required=false)
                                                                                                                                                                                                                                                                  String view,
                                                                                                                                                                                                                                                                  @RequestParam(required=false)
                                                                                                                                                                                                                                                                  List<String> fields)
Returns the process definition matching the id.
ambiguousWorkObjectDefinitionId - query definitions based on a work object definition id or global model id@ResponseBody
 @RequestMapping(value={"/process-definitions/{modelId}/init-form","/v1/process-definitions/{modelId}/init-form"},
                method=GET,
                produces="application/json")
public Map<String,Object> getProcessInitFormDefinition(@PathVariable
                                                                                                                                                                                                                                                                 String modelId,
                                                                                                                                                                                                                                                                 Locale locale)
                                                                                                                                                                                                                                                          throws Exception
ExceptionCopyright © 2010 - 2018 edorasware ag. All Rights Reserved.