Class FormResource


  • @Path("server/containers/{containerId}/forms")
    public class FormResource
    extends Object
    • Constructor Detail

      • FormResource

        public FormResource()
      • FormResource

        public FormResource​(org.kie.server.services.jbpm.ui.FormServiceBase formServiceBase,
                            org.kie.server.services.jbpm.ui.FormRendererBase formRendererBase,
                            org.kie.server.services.api.KieServerRegistry context)
    • Method Detail

      • getProcessForm

        @GET
        @Path("processes/{processId}")
        @Produces({"application/xml","application/json"})
        public javax.ws.rs.core.Response getProcessForm​(@Context
                                                        javax.ws.rs.core.HttpHeaders headers,
                                                        @PathParam("containerId")
                                                        String containerId,
                                                        @PathParam("processId")
                                                        String processId,
                                                        @QueryParam("lang") @DefaultValue("en")
                                                        String language,
                                                        @QueryParam("filter")
                                                        boolean filter,
                                                        @QueryParam("type") @DefaultValue("ANY")
                                                        String formType,
                                                        @QueryParam("marshallContent") @DefaultValue("true")
                                                        boolean marshallContent)
      • getTaskForm

        @GET
        @Path("tasks/{taskInstanceId}")
        @Produces({"application/xml","application/json"})
        public javax.ws.rs.core.Response getTaskForm​(@Context
                                                     javax.ws.rs.core.HttpHeaders headers,
                                                     @PathParam("containerId")
                                                     String containerId,
                                                     @PathParam("taskInstanceId")
                                                     Long taskId,
                                                     @QueryParam("lang") @DefaultValue("en")
                                                     String language,
                                                     @QueryParam("filter")
                                                     boolean filter,
                                                     @QueryParam("type") @DefaultValue("ANY")
                                                     String formType,
                                                     @QueryParam("marshallContent") @DefaultValue("true")
                                                     boolean marshallContent,
                                                     @QueryParam("user")
                                                     String user)
      • getProcessRenderedForm

        @GET
        @Path("processes/{processId}/content")
        @Produces("text/html")
        public javax.ws.rs.core.Response getProcessRenderedForm​(@Context
                                                                javax.ws.rs.core.HttpHeaders headers,
                                                                @PathParam("containerId")
                                                                String containerId,
                                                                @PathParam("processId")
                                                                String processId,
                                                                @QueryParam("renderer") @DefaultValue("patternfly")
                                                                String renderer)
      • getTaskRenderedForm

        @GET
        @Path("tasks/{taskInstanceId}/content")
        @Produces("text/html")
        public javax.ws.rs.core.Response getTaskRenderedForm​(@Context
                                                             javax.ws.rs.core.HttpHeaders headers,
                                                             @PathParam("containerId")
                                                             String containerId,
                                                             @PathParam("taskInstanceId")
                                                             Long taskId,
                                                             @QueryParam("renderer") @DefaultValue("patternfly")
                                                             String renderer)
      • getCaseRenderedForm

        @GET
        @Path("cases/{caseDefId}/content")
        @Produces("text/html")
        public javax.ws.rs.core.Response getCaseRenderedForm​(@Context
                                                             javax.ws.rs.core.HttpHeaders headers,
                                                             @PathParam("containerId")
                                                             String containerId,
                                                             @PathParam("caseDefId")
                                                             String caseDefId,
                                                             @QueryParam("renderer") @DefaultValue("patternfly")
                                                             String renderer)
      • getMediaTypeForFormContent

        protected String getMediaTypeForFormContent​(String contentType)