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
const express = require('express') | |
const app = express() | |
const bodyparser = require('body-parser') | |
const port = process.env.PORT || 3200 | |
app.use(bodyparser.json()) | |
app.use( | |
bodyparser.urlencoded({ | |
extended: false | |
}) |
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
<work-item-handler> | |
<resolver>mvel</resolver> | |
<identifier>new org.jbpm.process.workitem.email.EmailWorkItemHandler(System.getenv("DEMO_SMTP_SERVER"), System.getenv("DEMO_SMTP_PORT"),System.getenv("DEMO_SMTP_USER"),System.getenv("DEMO_SMTP_PWD"))</identifier> | |
<parameters/> | |
<name>Email</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
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
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()); |
OlderNewer