04-03-2014 04:29 PM
04-07-2014 03:54 AM
04-07-2014 11:44 AM
04-08-2014 09:25 AM
04-08-2014 11:21 AM
private BPMServer activiti_server = BPMServer.TEST;
private String activiti_rest_base_url = "http://" + activiti_server.getServerName() + "/activiti-rest/service";
private static final String TASK_URL = "/history/historic-task-instances";
private static final String RUNTIME_PROCESS = "/runtime/process-instances";
[\code]
To Create a process I use this
[code] HashMap<String,Object> response2 = restTemplate.postForObject( activiti_rest_base_url + RUNTIME_PROCESS , request, HashMap.class);
To get the task info I use this:String url = activiti_rest_base_url + TASK_URL + "?taskId=" + pTaskId + "&includeTaskLocalVariables=true&includeProcessVariables=true";
04-22-2014 06:15 AM
// Get hold of JSONConverter and enable ISO-date format by default
List<ConverterHelper> registeredConverters = Engine.getInstance().getRegisteredConverters();
for(ConverterHelper helper : registeredConverters) {
if(helper instanceof JacksonConverter) {
JacksonConverter jacksonConverter = (JacksonConverter) helper;
jacksonConverter.getObjectMapper().configure(SerializationConfig.Feature.WRITE_DATES_AS_TIMESTAMPS, false);
}
}
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.