Examples of JaxbGenericResponse


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

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

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

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

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

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

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

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

        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

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

        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

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

        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

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

        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
Copyright © 2018 www.massapi.com. 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.