This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<work-item-handler> | |
<resolver>mvel</resolver> | |
<identifier>new org.jbpm.process.workitem.rest.RESTWorkItemHandler(System.getenv("DEMO_REST_USER"), System.getenv("DEMO_REST_PWD"))</identifier> | |
<parameters/> | |
<name>Rest</name> | |
</work-item-handler> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<event-listeners> | |
<event-listener> | |
<resolver>mvel</resolver> | |
<identifier>new com.health_insurance.tracing.PHMProcessEventListener()</identifier> | |
<parameters/> | |
</event-listener> | |
<event-listener> | |
<resolver>mvel</resolver> | |
<identifier>new com.health_insurance.tracing.PHMAgendaEventListener()</identifier> | |
<parameters/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kcontext.setVariable("pGetInfoUrl","http://localhost:3200/get_trigger/"+(String)kcontext.getVariable("pTriggerId")+"/"+(String)kcontext.getVariable("pMemberId")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final ObjectMapper om = new ObjectMapper(); | |
ArrayList<Response> dd = new ArrayList<Response>(); | |
List rr = (List)kcontext.getVariable("pResult"); | |
Iterator<LinkedHashMap> i = rr.iterator(); | |
while(i.hasNext()) { | |
LinkedHashMap m = (LinkedHashMap)i.next(); | |
dd.add(om.convertValue(m,Response.class)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final ObjectMapper om = new ObjectMapper(); | |
ArrayList<Response> dd = new ArrayList<Response>(); | |
List rr = (List)kcontext.getVariable("pResult"); | |
Iterator<LinkedHashMap> i = rr.iterator(); | |
while(i.hasNext()) { | |
LinkedHashMap m = (LinkedHashMap)i.next(); | |
dd.add(om.convertValue(m,Response.class)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Reminder r = (Reminder)kcontext.getVariable("_Reminder"); | |
kcontext.setVariable("_To",r.getAddress()); | |
kcontext.setVariable("_Subj",r.getSubject()); | |
kcontext.setVariable("_Body",r.getBody()); | |
kcontext.setVariable("_From",r.getFrom()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Response d = (Response)kcontext.getVariable("pData"); | |
kcontext.setVariable("_taskId",d.getTask().getOrigId()); | |
kcontext.setVariable("_predecessorId",d.getTask().getPredecessor()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @param event | |
*/ | |
public void beforeSLAViolated(SLAViolatedEvent event) { | |
System.out.println( | |
"Process <<"+ | |
event.getProcessInstance().getProcessName()+ | |
">>-<"+ | |
event.getProcessInstance().getId()+ | |
"> ->SLA <<"+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl --location --request GET 'http://localhost:8080/kie-server/services/rest/server?Accept=application/json' \ | |
--header 'Accept: application/json' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type": "SUCCESS", | |
"msg": "Kie Server info", | |
"result": { | |
"kie-server-info": { | |
"id": "sample-server", | |
"version": "7.32.0.Final", | |
"name": "sample-server", | |
"location": "http://localhost:8080/kie-server/services/rest/server", | |
"capabilities": [ |
OlderNewer