|
|
@@ -178,6 +178,9 @@ public class InstanciaTascaService {
|
|
|
builder.command("cp", editableFile, finalFile);
|
|
|
Process process = builder.start();
|
|
|
process.waitFor();
|
|
|
+ it.setEvidencia(it.getIdInstanciaTasca().toString()+".pdf");
|
|
|
+ it.setEstat("E");
|
|
|
+ this.saveChanges(user, it);
|
|
|
}
|
|
|
catch (IOException e) {
|
|
|
e.printStackTrace();
|
|
|
@@ -189,10 +192,6 @@ public class InstanciaTascaService {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- it.setEvidencia(it.getIdInstanciaTasca().toString()+".pdf");
|
|
|
- it.setEstat("E");
|
|
|
- this.saveChanges(user, it);
|
|
|
}
|
|
|
else if(tipus == 20) { /* Check if procedure was instanced in the past */
|
|
|
String [] options = it.getTasca().getOpcions().split(";");
|
|
|
@@ -262,6 +261,9 @@ public class InstanciaTascaService {
|
|
|
try {
|
|
|
Process process = builder.start();
|
|
|
process.waitFor();
|
|
|
+ it.setEvidencia(it.getIdInstanciaTasca().toString()+".pdf");
|
|
|
+ it.setEstat("E");
|
|
|
+ this.saveChanges(user, it);
|
|
|
}
|
|
|
catch (IOException e) {
|
|
|
e.printStackTrace();
|
|
|
@@ -272,9 +274,6 @@ public class InstanciaTascaService {
|
|
|
Thread.currentThread().interrupt();
|
|
|
}
|
|
|
}
|
|
|
- it.setEvidencia(it.getIdInstanciaTasca().toString()+".pdf");
|
|
|
- it.setEstat("E");
|
|
|
- this.saveChanges(user, it);
|
|
|
}
|
|
|
else if(tipus == 16){ /* Copy evidence from other procedure */
|
|
|
String [] options = it.getTasca().getOpcions().split(";");
|