Package org.kie.services.client.serialization.jaxb.rest

Examples of org.kie.services.client.serialization.jaxb.rest.JaxbGenericResponse


        } else {
            throw KieRemoteRestOperationException.badRequest("Unsupported operation: " + oper);
        }
       
        doRestTaskOperationWithTaskId(taskId, cmd);
        return createCorrectVariant(new JaxbGenericResponse(getRequestUri()), headers);
    }
View Full Code Here


    }
   
    @Override
    public Response clearTaskBamHistory() {
        doRestTaskOperation(new DeleteBAMTaskSummariesCommand());
        return createCorrectVariant(new JaxbGenericResponse(getRelativePath()), headers);
    }
View Full Code Here

    // Rest methods --------------------------------------------------------------------------------------------------------------
  
    @Override
    public Response clear() {
        getAuditLogService().clear();
        return createCorrectVariant(new JaxbGenericResponse(getRequestUri()), headers);
    }
View Full Code Here

                throw KieRemoteRestOperationException.notFound("Process instance " + procInstId + " is not available.");
            }
            throw iae;
        }
               
        return createCorrectVariant(new JaxbGenericResponse(getRequestUri()), headers);
    }
View Full Code Here

        Object event = getObjectParam("event", false, params, oper);
        Command<?> cmd = new SignalEventCommand(procInstId, eventType, event);
       
        processRequestBean.doKieSessionOperation(cmd, deploymentId, procInstId);
       
        return createCorrectVariant(new JaxbGenericResponse(getRequestUri()), headers);

    }
View Full Code Here

        processRequestBean.doKieSessionOperation(
                new SignalEventCommand(eventType, event),
                deploymentId,
                (Long) getNumberParam(PROC_INST_ID_PARAM_NAME, false, requestParams, oper, true));
       
        return createCorrectVariant(new JaxbGenericResponse(getRequestUri()), headers);
    }
View Full Code Here

        processRequestBean.doKieSessionOperation(
                cmd,
                deploymentId,
                (Long) getNumberParam(PROC_INST_ID_PARAM_NAME, false, params, oper, true));
               
        return createCorrectVariant(new JaxbGenericResponse(getRequestUri()), headers);
    }
View Full Code Here

        assertTrue( i > 20 );
    }

    @Test
    public void genericResponseTest() throws Exception {
        JaxbGenericResponse resp = new JaxbGenericResponse();
        resp.setMessage("error");
        resp.setStatus(JaxbRequestStatus.SUCCESS);
        resp.setUrl("http://here");

        testRoundTrip(resp);
    }
View Full Code Here

TOP

Related Classes of org.kie.services.client.serialization.jaxb.rest.JaxbGenericResponse

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.