This file contains hidden or 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
| testVar = "remed"; | |
| kcontext.setVariable("testVar",testVar); | |
| org.jbpm.casemgmt.CaseMgmtService cmService = new org.jbpm.casemgmt.CaseMgmtUtil(kcontext); | |
| java.util.Map<String, Object> workParams = new java.util.HashMap<String, Object>(); | |
| workParams.put("Message", testVar); | |
This file contains hidden or 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
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>it.a2a.poc.bpm</groupId> | |
| <artifactId>RestDataProvider</artifactId> | |
| <version>0.0.1-SNAPSHOT</version> | |
| <name>RestDataProvider</name> | |
| <dependencies> | |
| <dependency> | |
| <groupId>org.jboss.resteasy</groupId> |
This file contains hidden or 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
| Client client = ClientBuilder.newClient(); | |
| Response res = client.target("http://localhost:8888/Rest/ok").request().get(); | |
| Simple[] entity = res.readEntity(Simple[].class); |
This file contains hidden or 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
| # Open a file | |
| fi = open("/home/donato/cf.txt", "r+") | |
| fo = open("/home/donato/date.txt", "w+") | |
| meseCod = "ABCDEHLMPRST" | |
| for cf in fi: | |
| try: | |
| anno = int(cf[6:8]) | |
| mese = meseCod.index(cf[8:9]) + 1 | |
| giorno = int(cf[9:11]) |
This file contains hidden or 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
| for i in *; do if [[ $i =~ ^[0-9]{1,2}$ ]]; then echo $i; fi ; done |
NewerOlder