Todas las task menos requerimientosSolicitud

This commit is contained in:
cruales 2022-11-23 08:43:19 -05:00
parent 39701faed6
commit 3ec0ef1179
171 changed files with 136 additions and 107 deletions

View File

@ -227,7 +227,7 @@ public final class FlowUtil {
if (!lemail.isEmpty()) {
HashMap<String, Object> m = (HashMap<String, Object>) pParam;
((Request) m.get("request")).put("cusuariobpm", taskinfo.getUserId());
RuleUtil.sendMail((Request) m.get("request"));
//RuleUtil.sendMail((Request) m.get("request"));
}
}
@ -261,7 +261,7 @@ public final class FlowUtil {
if(taskinfo!=null && taskinfo.getAditionalData()!=null && taskinfo.getAditionalData().get("datosmail")!=null && !taskinfo.getAditionalData().get("datosmail").equals("")){
((Request) m.get("request")).putAll((Map)taskinfo.getAditionalData().get("datosmail"));
}
RuleUtil.sendMail((Request) m.get("request"));
//RuleUtil.sendMail((Request) m.get("request"));
}else{
RuleUtil.setSubjectTemplate(63);
TgeneParameters addres=TgeneParameters.find(PersistenceHelper.getEntityManager(), new TgeneParametersKey("MAIL.CENTRAL", 1));
@ -271,7 +271,7 @@ public final class FlowUtil {
if(taskinfo!=null && taskinfo.getAditionalData()!=null && taskinfo.getAditionalData().get("datosmail")!=null && !taskinfo.getAditionalData().get("datosmail").equals("")){
((Request) m.get("request")).putAll((Map)taskinfo.getAditionalData().get("datosmail"));
}
RuleUtil.sendMail((Request) m.get("request"));
//RuleUtil.sendMail((Request) m.get("request"));
}
}
@ -305,7 +305,7 @@ public final class FlowUtil {
if(taskinfo!=null && taskinfo.getAditionalData()!=null && taskinfo.getAditionalData().get("datosmail")!=null){
((Request) m.get("request")).putAll((Map)taskinfo.getAditionalData().get("datosmail"));
}
RuleUtil.sendMail((Request) m.get("request"));
// RuleUtil.sendMail((Request) m.get("request"));
}else{
RuleUtil.setSubjectTemplate(63);
TgeneParameters addres=TgeneParameters.find(PersistenceHelper.getEntityManager(), new TgeneParametersKey("MAIL.CENTRAL", 1));
@ -315,7 +315,7 @@ public final class FlowUtil {
if(taskinfo!=null && taskinfo.getAditionalData()!=null && taskinfo.getAditionalData().get("datosmail")!=null){
((Request) m.get("request")).putAll((Map)taskinfo.getAditionalData().get("datosmail"));
}
RuleUtil.sendMail((Request) m.get("request"));
// RuleUtil.sendMail((Request) m.get("request"));
}
}

View File

@ -254,7 +254,7 @@ public class TaskUtil {
try {
return htc.completeTask(tid, pJournalId, data, pResponse.getCode(), pObs.toUpperCase());
} catch (Exception e) {
throw new BPMException("BPM502", "NO SE HA PODIDO COMPLETAR LA TAREA {0} ", e, tid);
throw new BPMException("BPM502", String.format("NO SE HA PODIDO COMPLETAR LA TAREA {0}: %s", e.toString()), e, tid);
}
}

View File

@ -1,5 +1,5 @@
#Generated by Maven
#Mon Nov 21 06:11:27 ECT 2022
#Tue Nov 22 17:00:38 ECT 2022
version=2.1
groupId=com.fp.base.bpm
artifactId=bpmlib

View File

@ -1,5 +1,5 @@
#Generated by Maven
#Mon Nov 21 06:11:18 ECT 2022
#Tue Nov 22 17:00:33 ECT 2022
version=2.1
groupId=com.fp.base.bpm
artifactId=simple

View File

@ -86,7 +86,7 @@ public class ColaImpresion extends QueryRule{
colaImpresionObj.setEstadoimpresion(tmp[1].toString());
colaImpresionObj.setFechaimpresion((Timestamp) tmp[4]);
colaImpresionObj.setEstadoimpresioncode(tmp[2].toString());
colaImpresionObj.setCdocumento(((BigDecimal) tmp[0]).longValue());
colaImpresionObj.setCdocumento((new BigDecimal(tmp[0].toString())).longValue());
colaImpresionObj.setFecharegistro(new Date(((Timestamp) tmp[5]).getTime()));
if (tmp[6] != null)
colaImpresionObj.setCodigotarjeta(tmp[6].toString());

View File

@ -1,5 +1,5 @@
#Generated by Maven
#Mon Nov 21 06:12:01 ECT 2022
#Tue Nov 22 17:00:59 ECT 2022
version=2.1
groupId=com.fp.base.business
artifactId=armas

View File

@ -13,7 +13,6 @@ import com.fp.persistence.pgeneral.acco.TgeneAccountKey;
import com.fp.persistence.pgeneral.gene.TgeneSolicitude;
import com.fp.persistence.pgeneral.gene.TgeneSolicitudeKey;
import com.fp.persistence.pgeneral.safe.TsafeAudit;
import com.fp.persistence.pgeneral.safe.TsafeAuditInsDel;
import java.util.List;
/**

View File

@ -149,7 +149,7 @@ public class QueryAudit extends QueryRule {
*/
private String recValueAudit(Object changedate, Object tablename, Object partitiondb, Object realdate) throws Exception {
String recvalue = "";
Date change = (Date) changedate;
Timestamp change = (Timestamp) changedate;
Timestamp real = (Timestamp) realdate;
String table = (String) tablename;
String partition = (String) partitiondb;

View File

@ -1,5 +1,5 @@
#Generated by Maven
#Mon Nov 21 06:11:52 ECT 2022
#Tue Nov 22 17:00:53 ECT 2022
version=2.1
groupId=com.fp.base.business
artifactId=general

Binary file not shown.

View File

@ -1,5 +1,5 @@
#Generated by Maven
#Mon Nov 21 06:11:55 ECT 2022
#Tue Nov 22 17:00:55 ECT 2022
version=2.1
groupId=com.fp.base.business
artifactId=log

View File

@ -1,5 +1,5 @@
#Generated by Maven
#Mon Nov 21 06:11:48 ECT 2022
#Tue Nov 22 17:00:50 ECT 2022
version=2.1
groupId=com.fp.base.business
artifactId=person

View File

@ -1,5 +1,5 @@
#Generated by Maven
#Mon Nov 21 06:11:54 ECT 2022
#Tue Nov 22 17:00:54 ECT 2022
version=2.1
groupId=com.fp.base.business
artifactId=report

View File

@ -1,5 +1,5 @@
#Generated by Maven
#Mon Nov 21 06:11:57 ECT 2022
#Tue Nov 22 17:00:56 ECT 2022
version=2.1
groupId=com.fp.base.business
artifactId=viaticos

View File

@ -1,7 +1,7 @@
#Configuracion APP
api.user=admin
api.password=admin
api.uri.base=http://172.17.26.184:8080/alfresco/service
api.uri.base=http://172.17.26.75:8082/alfresco/service
api.uri.delete.general=/slingshot/doclib/action/file/node/
#Directorio base para las consultas
api.doclocation.base=/app:company_home/st:sites/cm:{0}/cm:documentLibrary

View File

@ -1,7 +1,7 @@
#Configuracion APP
api.user=admin
api.password=admin
api.uri.base=http://172.17.26.184:8080/alfresco/service
api.uri.base=http://172.17.26.75:8082/alfresco/service
api.uri.delete.general=/slingshot/doclib/action/file/node/
#Directorio base para las consultas
api.doclocation.base=/app:company_home/st:sites/cm:{0}/cm:documentLibrary

View File

@ -1,5 +1,5 @@
#Generated by Maven
#Mon Nov 21 06:11:42 ECT 2022
#Tue Nov 22 17:00:47 ECT 2022
version=2.1
groupId=com.fp.base.core
artifactId=alfresco-client

View File

@ -84,7 +84,6 @@ public abstract class ActionExecutor {
if (!this.isInsert()) {
return;
}
System.err.println("");
this.log.setDuration(pTime);
this.log.setResultcode(Response.RESPONSE_OK);
this.log.setUsermessage("OK");

Binary file not shown.

View File

@ -1,5 +1,5 @@
#Generated by Maven
#Mon Nov 21 06:11:19 ECT 2022
#Tue Nov 22 17:00:35 ECT 2022
version=2.1
groupId=com.fp.base.core
artifactId=bpm

View File

@ -1,5 +1,5 @@
#Generated by Maven
#Mon Nov 21 06:11:40 ECT 2022
#Tue Nov 22 17:00:46 ECT 2022
version=2.1
groupId=com.fp.base.core
artifactId=firmas

View File

@ -1,5 +1,5 @@
#Generated by Maven
#Mon Nov 21 06:11:02 ECT 2022
#Tue Nov 22 17:00:20 ECT 2022
version=2.1
groupId=com.fp.base.dto
artifactId=common

Binary file not shown.

View File

@ -1,5 +1,5 @@
#Generated by Maven
#Mon Nov 21 06:10:59 ECT 2022
#Tue Nov 22 17:00:18 ECT 2022
version=2.1
groupId=com.fp.base.dto
artifactId=dto

Binary file not shown.

View File

@ -1,5 +1,5 @@
#Generated by Maven
#Mon Nov 21 06:12:05 ECT 2022
#Tue Nov 22 17:01:01 ECT 2022
version=2.1
groupId=com.fp.base
artifactId=facade

View File

@ -1,5 +1,5 @@
#Generated by Maven
#Mon Nov 21 06:12:03 ECT 2022
#Tue Nov 22 17:01:00 ECT 2022
version=2.1
groupId=com.fp.base
artifactId=facadeclient

View File

@ -20,6 +20,7 @@ import com.fp.persistence.pgeneral.safe.TsafeAuditInsDel;
import com.fp.persistence.pgeneral.safe.TsafeAuditInsDelKey;
import com.fp.persistence.pgeneral.safe.TsafeAuditKey;
import com.fp.persistence.pgeneral.safe.TsafeUser;
import java.util.Calendar;
/**
* Clase que se encarga del menejo de auditoria de de cambios en tablas.
@ -103,7 +104,7 @@ public class Audit {
TsafeAuditKey key = new TsafeAuditKey();
//TgeneAccountingDateBranchKey dkey = new TgeneAccountingDateBranchKey(0, sr.getCompany());
//TgeneAccountingDateBranch d = TgeneAccountingDateBranch.find(PersistenceHelper.getEntityManager(), dkey);
Date fecha = new Date(t.getTime());
Timestamp fecha = new Timestamp(Calendar.getInstance().getTimeInMillis());
key.setChangedate(fecha);//d.getAccountingdate()
key.setTablename(beanName.toUpperCase());
key.setColumnname(f.getName().toUpperCase());
@ -212,6 +213,7 @@ public class Audit {
*/
private static void saveLogInsertDelete(String beanName, Map<String, Object> m, boolean insert) throws Exception {
Timestamp t = FormatDates.getInstance().getDataBaseTimestamp();
Timestamp change = new Timestamp(Calendar.getInstance().getTimeInMillis());
SaveRequest sr = SaveData.getSaveRequest();
if (sr == null) {
return;
@ -220,11 +222,13 @@ public class Audit {
TsafeAuditInsDelKey key = new TsafeAuditInsDelKey();
//TgeneAccountingDateBranchKey dkey = new TgeneAccountingDateBranchKey(0, sr.getCompany());
//TgeneAccountingDateBranch d = TgeneAccountingDateBranch.find(PersistenceHelper.getEntityManager(), dkey);
Date fecha = new Date(t.getTime());
key.setChangedate(fecha);
//Date fecha = new Date(t.getTime());
Timestamp real = new Timestamp(Calendar.getInstance().getTimeInMillis());
key.setChangedate(change);
key.setTablename(beanName.toUpperCase());
key.setPartitiondb(FormatDates.getPartition(key.getChangedate()));
key.setRealdate(t);
key.setRealdate(real);
TsafeAuditInsDel obj = new TsafeAuditInsDel();
obj.setPk(key);
obj.setCompanycode(sr.getCompany());

View File

@ -1,5 +1,5 @@
#Generated by Maven
#Mon Nov 21 06:11:13 ECT 2022
#Tue Nov 22 17:00:29 ECT 2022
version=2.1
groupId=com.fp.base.persistence
artifactId=commondb

View File

@ -1,5 +1,5 @@
#Generated by Maven
#Mon Nov 21 06:11:36 ECT 2022
#Tue Nov 22 17:00:44 ECT 2022
version=2.1
groupId=com.fp.base.persistence
artifactId=parmas

View File

@ -1,5 +1,5 @@
#Generated by Maven
#Mon Nov 21 06:11:04 ECT 2022
#Tue Nov 22 17:00:22 ECT 2022
version=2.1
groupId=com.fp.base.persistence
artifactId=pbpm

View File

@ -1,5 +1,5 @@
#Generated by Maven
#Mon Nov 21 06:11:15 ECT 2022
#Tue Nov 22 17:00:31 ECT 2022
version=2.1
groupId=com.fp.base.persistence
artifactId=pcustomer

View File

@ -1,5 +1,5 @@
#Generated by Maven
#Mon Nov 21 06:11:32 ECT 2022
#Tue Nov 22 17:00:42 ECT 2022
version=2.1
groupId=com.fp.base.persistence
artifactId=pfirmas

View File

@ -26,7 +26,7 @@ private static final long serialVersionUID = 1L;
/**
* Fecha del log, es la fecha en la que se realizo el cambio de una tabla
*/
private Date changedate;
private Timestamp changedate;
@Column(name="TABLENAME", nullable=false,updatable=false)
@ -57,7 +57,7 @@ public TsafeAuditInsDelKey(){}
@param pPartitiondb Anio mes de la fecha del cambio, con este dato se particiona la tabla.
@param pRealdate Fecha real del cambio
*/
public TsafeAuditInsDelKey(Date pChangedate,String pTablename,String pPartitiondb,Timestamp pRealdate){
public TsafeAuditInsDelKey(Timestamp pChangedate,String pTablename,String pPartitiondb,Timestamp pRealdate){
changedate=pChangedate;
tablename=pTablename;
partitiondb=pPartitiondb;
@ -65,12 +65,12 @@ public TsafeAuditInsDelKey(Date pChangedate,String pTablename,String pPartitiond
}
/**Obtiene el valor de changedate
@return valor de changedate*/
public Date getChangedate(){
public Timestamp getChangedate(){
return changedate;
}
/**Fija el valor de changedate
@param pChangedate nuevo Valor de changedate*/
public void setChangedate(Date pChangedate){
public void setChangedate(Timestamp pChangedate){
changedate=pChangedate;
}

View File

@ -26,7 +26,7 @@ private static final long serialVersionUID = 1L;
/**
* Fecha del log, es la fecha en la que se realizo el cambio de una tabla
*/
private Date changedate;
private Timestamp changedate;
@Column(name="TABLENAME", nullable=false,updatable=false)
@ -65,7 +65,7 @@ public TsafeAuditKey(){}
@param pPartitiondb Anio mes de la fecha del cambio, con este dato se particiona la tabla.
@param pRealdate Fecha real del cambio
*/
public TsafeAuditKey(Date pChangedate,String pTablename,String pColumnname,String pPartitiondb,Timestamp pRealdate){
public TsafeAuditKey(Timestamp pChangedate,String pTablename,String pColumnname,String pPartitiondb,Timestamp pRealdate){
changedate=pChangedate;
tablename=pTablename;
columnname=pColumnname;
@ -74,12 +74,12 @@ public TsafeAuditKey(Date pChangedate,String pTablename,String pColumnname,Strin
}
/**Obtiene el valor de changedate
@return valor de changedate*/
public Date getChangedate(){
public Timestamp getChangedate(){
return changedate;
}
/**Fija el valor de changedate
@param pChangedate nuevo Valor de changedate*/
public void setChangedate(Date pChangedate){
public void setChangedate(Timestamp pChangedate){
changedate=pChangedate;
}

View File

@ -1,5 +1,5 @@
#Generated by Maven
#Mon Nov 21 06:11:08 ECT 2022
#Tue Nov 22 17:00:27 ECT 2022
version=2.1
groupId=com.fp.base.persistence
artifactId=pgeneral

Some files were not shown because too many files have changed in this diff Show More