Sfoglia il codice sorgente

viarch

feature/advanced-operation
abianchi7701 3 giorni fa
parent
commit
361960d1e5
  1. BIN
      liferay-plugins-sdk-6.2/dist/portos-audit-shared-6.2.0.1.jar
  2. BIN
      liferay-plugins-sdk-6.2/dist/portos-bo-shared-6.2.0.1.jar
  3. BIN
      liferay-plugins-sdk-6.2/dist/portos-kaleo-shared-6.2.0.1.jar
  4. BIN
      liferay-plugins-sdk-6.2/dist/portos-mail-manager-shared-6.2.0.1.jar
  5. BIN
      liferay-plugins-sdk-6.2/dist/portos-report-shared-6.2.0.1.jar
  6. BIN
      liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.gradle/8.9/checksums/checksums.lock
  7. 0
      liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.gradle/8.9/dependencies-accessors/gc.properties
  8. BIN
      liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.gradle/8.9/executionHistory/executionHistory.lock
  9. BIN
      liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.gradle/8.9/fileChanges/last-build.bin
  10. BIN
      liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.gradle/8.9/fileHashes/fileHashes.lock
  11. 0
      liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.gradle/8.9/gc.properties
  12. 11
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.project
  13. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-audit-shared.jar
  14. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar
  15. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar
  16. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-kaleo-shared.jar
  17. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-mail-manager-shared.jar
  18. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-report-shared.jar
  19. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ControlloPraticaLocalServiceImpl.java
  20. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties
  21. 1
      liferay-plugins-sdk-6.2/shared/portos-bo-shared/.classpath
  22. 2
      liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/StatoPraticaConstants.java
  23. BIN
      liferay-plugins-sdk-6.2/shared/portos-mail-manager-shared/.gradle/8.9/checksums/checksums.lock
  24. 0
      liferay-plugins-sdk-6.2/shared/portos-mail-manager-shared/.gradle/8.9/dependencies-accessors/gc.properties
  25. BIN
      liferay-plugins-sdk-6.2/shared/portos-mail-manager-shared/.gradle/8.9/executionHistory/executionHistory.lock
  26. BIN
      liferay-plugins-sdk-6.2/shared/portos-mail-manager-shared/.gradle/8.9/fileChanges/last-build.bin
  27. BIN
      liferay-plugins-sdk-6.2/shared/portos-mail-manager-shared/.gradle/8.9/fileHashes/fileHashes.lock
  28. 0
      liferay-plugins-sdk-6.2/shared/portos-mail-manager-shared/.gradle/8.9/gc.properties
  29. 13
      liferay-plugins-sdk-6.2/webs/portos-kaleo-web/.classpath
  30. 2
      liferay-plugins-sdk-6.2/webs/portos-kaleo-web/.project
  31. 6
      liferay-plugins-sdk-6.2/webs/portos-kaleo-web/.settings/org.eclipse.wst.common.project.facet.core.xml
  32. BIN
      liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/lib/portos-bo-portlet-service.jar
  33. BIN
      liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/lib/portos-bo-shared.jar
  34. BIN
      liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/lib/portos-kaleo-shared.jar
  35. 5
      liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/hook/struts/EditWorkflowTaskAction.java
  36. 29
      liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/hook/struts/RenderFormTaskPortletAction.java
  37. 55
      liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/util/WorkflowUtil.java

BIN
liferay-plugins-sdk-6.2/dist/portos-audit-shared-6.2.0.1.jar vendored

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/dist/portos-bo-shared-6.2.0.1.jar vendored

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/dist/portos-kaleo-shared-6.2.0.1.jar vendored

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/dist/portos-mail-manager-shared-6.2.0.1.jar vendored

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/dist/portos-report-shared-6.2.0.1.jar vendored

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.gradle/8.9/checksums/checksums.lock

File binario non mostrato.

0
liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.gradle/8.9/dependencies-accessors/gc.properties

BIN
liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.gradle/8.9/executionHistory/executionHistory.lock

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.gradle/8.9/fileChanges/last-build.bin

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.gradle/8.9/fileHashes/fileHashes.lock

File binario non mostrato.

0
liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.gradle/8.9/gc.properties

11
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.project

@ -33,4 +33,15 @@
<nature>org.eclipse.jdt.core.javanature</nature> <nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature> <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures> </natures>
<filteredResources>
<filter>
<id>1737018941321</id>
<name></name>
<type>30</type>
<matcher>
<id>org.eclipse.core.resources.regexFilterMatcher</id>
<arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription> </projectDescription>

BIN
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-audit-shared.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-kaleo-shared.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-mail-manager-shared.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-report-shared.jar

File binario non mostrato.

2
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ControlloPraticaLocalServiceImpl.java

@ -547,6 +547,8 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
esito.put(etichettaEsito("Concludi VIArch", StatoPraticaConstants.NON_CONFORME)); esito.put(etichettaEsito("Concludi VIArch", StatoPraticaConstants.NON_CONFORME));
esito.put(etichettaEsito(StatoPraticaConstants.INTEGRAZIONE)); esito.put(etichettaEsito(StatoPraticaConstants.INTEGRAZIONE));
esito.put(etichettaEsito(StatoPraticaConstants.NO_PARERE)); esito.put(etichettaEsito(StatoPraticaConstants.NO_PARERE));
esito.put(etichettaEsito("Preavviso di Parere Contrario", StatoPraticaConstants.PREAVVISO_PARERE_CONTRARIO));
esito.put(etichettaEsito("Autorizzazione Negata", StatoPraticaConstants.NEGATA));
JSONObject json = JSONFactoryUtil.createJSONObject(); JSONObject json = JSONFactoryUtil.createJSONObject();
json.put("esito", esito); json.put("esito", esito);
jsonViarch = json.toString(); jsonViarch = json.toString();

4
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties

@ -13,8 +13,8 @@
## ##
build.namespace=portos_bo build.namespace=portos_bo
build.number=3679 build.number=3681
build.date=1709032683993 build.date=1736853764242
build.auto.upgrade=true build.auto.upgrade=true
## ##

1
liferay-plugins-sdk-6.2/shared/portos-bo-shared/.classpath

@ -3,5 +3,6 @@
<classpathentry kind="src" path="src"/> <classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.jst.server.core.container/com.liferay.ide.eclipse.server.tomcat.runtimeClasspathProvider/Liferay v6.2 CE (Tomcat 7)"/> <classpathentry kind="con" path="org.eclipse.jst.server.core.container/com.liferay.ide.eclipse.server.tomcat.runtimeClasspathProvider/Liferay v6.2 CE (Tomcat 7)"/>
<classpathentry kind="lib" path="C:/liferay-project/Paesaggistica/git/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/portos-bo-shared.jar"/>
<classpathentry kind="output" path="classes"/> <classpathentry kind="output" path="classes"/>
</classpath> </classpath>

2
liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/StatoPraticaConstants.java

@ -24,6 +24,8 @@ public class StatoPraticaConstants {
public static final String SOTTOPOSTA_A_PARERE = "SP"; public static final String SOTTOPOSTA_A_PARERE = "SP";
public static final String VARIATA = "VA"; public static final String VARIATA = "VA";
public static final String VIDIMATA = "VI"; public static final String VIDIMATA = "VI";
public static final String NEGATA = "NG";
public static final String PREAVVISO_PARERE_CONTRARIO = "PP";
/* Stati "virtuali" */ /* Stati "virtuali" */
public static final String IN_COMPILAZIONE = "IC"; public static final String IN_COMPILAZIONE = "IC";

BIN
liferay-plugins-sdk-6.2/shared/portos-mail-manager-shared/.gradle/8.9/checksums/checksums.lock

File binario non mostrato.

0
liferay-plugins-sdk-6.2/shared/portos-mail-manager-shared/.gradle/8.9/dependencies-accessors/gc.properties

BIN
liferay-plugins-sdk-6.2/shared/portos-mail-manager-shared/.gradle/8.9/executionHistory/executionHistory.lock

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/shared/portos-mail-manager-shared/.gradle/8.9/fileChanges/last-build.bin

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/shared/portos-mail-manager-shared/.gradle/8.9/fileHashes/fileHashes.lock

File binario non mostrato.

0
liferay-plugins-sdk-6.2/shared/portos-mail-manager-shared/.gradle/8.9/gc.properties

13
liferay-plugins-sdk-6.2/webs/portos-kaleo-web/.classpath

@ -1,22 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<classpath> <classpath>
<classpathentry kind="src" path="docroot/WEB-INF/src"/> <classpathentry kind="src" path="docroot/WEB-INF/src"/>
<classpathentry kind="src" path="docroot/WEB-INF/service"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jre7">
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
<classpathentry kind="con" path="com.liferay.ide.eclipse.server.plugin.container/web">
<attributes> <attributes>
<attribute name="org.eclipse.jst.component.nondependency" value=""/> <attribute name="owner.project.facets" value="java"/>
</attributes> </attributes>
</classpathentry> </classpathentry>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
<classpathentry kind="con" path="org.eclipse.jst.server.core.container/com.liferay.ide.eclipse.server.tomcat.runtimeClasspathProvider/Liferay v6.2 CE (Tomcat 7)"> <classpathentry kind="con" path="org.eclipse.jst.server.core.container/com.liferay.ide.eclipse.server.tomcat.runtimeClasspathProvider/Liferay v6.2 CE (Tomcat 7)">
<attributes> <attributes>
<attribute name="owner.project.facets" value="jst.web"/> <attribute name="owner.project.facets" value="jst.web"/>
</attributes> </attributes>
</classpathentry> </classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jre"> <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
<classpathentry kind="con" path="com.liferay.ide.eclipse.server.plugin.container/web">
<attributes> <attributes>
<attribute name="owner.project.facets" value="java"/> <attribute name="org.eclipse.jst.component.nondependency" value=""/>
</attributes> </attributes>
</classpathentry> </classpathentry>
<classpathentry kind="output" path="docroot/WEB-INF/classes"/> <classpathentry kind="output" path="docroot/WEB-INF/classes"/>

2
liferay-plugins-sdk-6.2/webs/portos-kaleo-web/.project

@ -35,7 +35,7 @@
</natures> </natures>
<filteredResources> <filteredResources>
<filter> <filter>
<id>1676466957723</id> <id>1737018941343</id>
<name></name> <name></name>
<type>30</type> <type>30</type>
<matcher> <matcher>

6
liferay-plugins-sdk-6.2/webs/portos-kaleo-web/.settings/org.eclipse.wst.common.project.facet.core.xml

@ -1,9 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<faceted-project> <faceted-project>
<runtime name="Liferay v6.2 CE (Tomcat 7)"/> <runtime name="Liferay v6.2 CE (Tomcat 7)"/>
<fixed facet="jst.web"/>
<fixed facet="wst.jsdt.web"/> <fixed facet="wst.jsdt.web"/>
<installed facet="jst.web" version="2.5"/> <fixed facet="java"/>
<installed facet="java" version="1.7"/>
<installed facet="jst.web" version="3.0"/>
<installed facet="liferay.web" version="6.0"/> <installed facet="liferay.web" version="6.0"/>
<installed facet="wst.jsdt.web" version="1.0"/> <installed facet="wst.jsdt.web" version="1.0"/>
<installed facet="java" version="1.7"/>
</faceted-project> </faceted-project>

BIN
liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/lib/portos-bo-portlet-service.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/lib/portos-bo-shared.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/lib/portos-kaleo-shared.jar

File binario non mostrato.

5
liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/hook/struts/EditWorkflowTaskAction.java

@ -21,6 +21,7 @@ import java.io.Serializable;
import java.util.Arrays; import java.util.Arrays;
import java.util.Calendar; import java.util.Calendar;
import java.util.Date; import java.util.Date;
import java.util.Enumeration;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
@ -97,7 +98,8 @@ public class EditWorkflowTaskAction extends BaseStrutsPortletAction {
private static final List<String> VALORI_AMMESSI = Arrays.asList(StatoPraticaConstants.ANNULLATA, private static final List<String> VALORI_AMMESSI = Arrays.asList(StatoPraticaConstants.ANNULLATA,
StatoPraticaConstants.CONFORME, StatoPraticaConstants.INTEGRAZIONE, StatoPraticaConstants.NON_CONFORME, StatoPraticaConstants.CONFORME, StatoPraticaConstants.INTEGRAZIONE, StatoPraticaConstants.NON_CONFORME,
StatoPraticaConstants.NO_PARERE, StatoPraticaConstants.PREAVVISO_CONTRARIO, StatoPraticaConstants.NO_PARERE, StatoPraticaConstants.PREAVVISO_CONTRARIO,
StatoPraticaConstants.PERIZIA_SANZIONE, StatoPraticaConstants.DECRETO_SANZIONE); StatoPraticaConstants.PERIZIA_SANZIONE, StatoPraticaConstants.DECRETO_SANZIONE,
StatoPraticaConstants.PREAVVISO_PARERE_CONTRARIO, StatoPraticaConstants.NEGATA);
private static final List<Integer> LOG_TYPES = Arrays.asList(WorkflowLog.TASK_ASSIGN, WorkflowLog.TASK_COMPLETION, private static final List<Integer> LOG_TYPES = Arrays.asList(WorkflowLog.TASK_ASSIGN, WorkflowLog.TASK_COMPLETION,
WorkflowLog.TASK_UPDATE, WorkflowLog.TRANSITION); WorkflowLog.TASK_UPDATE, WorkflowLog.TRANSITION);
@ -176,6 +178,7 @@ public class EditWorkflowTaskAction extends BaseStrutsPortletAction {
|| esito.equalsIgnoreCase(StatoPraticaConstants.PREAVVISO_CONTRARIO) || esito.equalsIgnoreCase(StatoPraticaConstants.PREAVVISO_CONTRARIO)
|| esito.equalsIgnoreCase(StatoPraticaConstants.PERIZIA_SANZIONE) || esito || esito.equalsIgnoreCase(StatoPraticaConstants.PERIZIA_SANZIONE) || esito
.equalsIgnoreCase(StatoPraticaConstants.DECRETO_SANZIONE)) && testoDocumento.isEmpty())) { .equalsIgnoreCase(StatoPraticaConstants.DECRETO_SANZIONE)) && testoDocumento.isEmpty())) {
//TODO controllare che 2 siano ammessi
_log.error("controllo validazione completamento task registra-esito = " + workflowTaskId _log.error("controllo validazione completamento task registra-esito = " + workflowTaskId
+ " non riuscito - esito non valorizzato o esito " + StatoPraticaConstants.INTEGRAZIONE + " non riuscito - esito non valorizzato o esito " + StatoPraticaConstants.INTEGRAZIONE
+ StringPool.SLASH + StatoPraticaConstants.PREAVVISO_CONTRARIO + StringPool.SLASH + StringPool.SLASH + StatoPraticaConstants.PREAVVISO_CONTRARIO + StringPool.SLASH

29
liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/hook/struts/RenderFormTaskPortletAction.java

@ -104,13 +104,40 @@ public class RenderFormTaskPortletAction extends BaseStrutsPortletAction {
parameters.remove("esito"); parameters.remove("esito");
parameters.remove("testo_del_documento"); parameters.remove("testo_del_documento");
} }
printValues(fieldNameOptions);
_log.info("Questo e parameters");
for (String key : parameters.keySet()){
_log.info("Key: "+ key+ " Value: "+ parameters.get(key));
}
_log.info(" ");
_log.info("Questo e workflowContext");
for (String key : workflowContext.keySet()){
_log.info("Key: "+ key+ " Value: "+ workflowContext.get(key));
}
return "/portlet/workflow_tasks/render_form_task.jsp"; return "/portlet/workflow_tasks/render_form_task.jsp";
} }
private void printValues (Map<String, List<Map<String, Serializable>>> fieldNameOptions){
_log.info("Questo e fieldNameOptions");
for (Map.Entry<String, List<Map<String, Serializable>>> entry : fieldNameOptions.entrySet()) {
for (Map<String, Serializable> option : entry.getValue()) {
for (String key : option.keySet()){
_log.info("Key: "+ key+ " Value: "+ option.get(key));
}
}
_log.info(" ");
}
}
@Override @Override
public void serveResource(PortletConfig portletConfig, ResourceRequest resourceRequest, public void serveResource(PortletConfig portletConfig, ResourceRequest resourceRequest,
ResourceResponse resourceResponse) throws Exception { ResourceResponse resourceResponse) throws Exception {
_log.info("serveResource");
ServiceContext serviceContext = ServiceContextFactory.getInstance(resourceRequest); ServiceContext serviceContext = ServiceContextFactory.getInstance(resourceRequest);
long companyId = PortalUtil.getCompanyId(resourceRequest); long companyId = PortalUtil.getCompanyId(resourceRequest);
long workflowTaskId = ParamUtil.getLong(resourceRequest, "workflowTaskId"); long workflowTaskId = ParamUtil.getLong(resourceRequest, "workflowTaskId");

55
liferay-plugins-sdk-6.2/webs/portos-kaleo-web/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/util/WorkflowUtil.java

@ -1,36 +1,13 @@
package it.tref.liferay.portos.kaleo.util; package it.tref.liferay.portos.kaleo.util;
import it.tref.liferay.portos.bo.model.ControlloPratica;
import it.tref.liferay.portos.bo.model.IntPratica;
import it.tref.liferay.portos.bo.service.AvvisoLocalServiceUtil;
import it.tref.liferay.portos.bo.service.ConfigurazioneLocalServiceUtil;
import it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants;
import it.tref.liferay.portos.bo.util.PraticaUtil;
import it.tref.liferay.portos.kaleo.model.FormLog;
import it.tref.liferay.portos.kaleo.service.FormLogLocalServiceUtil;
import it.tref.liferay.portos.kaleo.shared.util.WorkflowConstants;
import java.io.Serializable;
import java.util.Collections;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import javax.portlet.PortletRequest;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.lang.StringUtils;
import com.liferay.portal.NoSuchWorkflowInstanceLinkException; import com.liferay.portal.NoSuchWorkflowInstanceLinkException;
import com.liferay.portal.kernel.dao.orm.QueryUtil; import com.liferay.portal.kernel.dao.orm.QueryUtil;
import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.json.JSONDeserializer; import com.liferay.portal.kernel.json.JSONDeserializer;
import com.liferay.portal.kernel.json.JSONFactoryUtil; import com.liferay.portal.kernel.json.JSONFactoryUtil;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.repository.model.Folder; import com.liferay.portal.kernel.repository.model.Folder;
import com.liferay.portal.kernel.util.Base64; import com.liferay.portal.kernel.util.Base64;
import com.liferay.portal.kernel.util.ContentTypes; import com.liferay.portal.kernel.util.ContentTypes;
@ -55,6 +32,32 @@ import com.liferay.portal.workflow.kaleo.service.KaleoTaskInstanceTokenLocalServ
import com.liferay.portlet.documentlibrary.NoSuchFolderException; import com.liferay.portlet.documentlibrary.NoSuchFolderException;
import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil; import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil;
import it.tref.liferay.portos.bo.model.ControlloPratica;
import it.tref.liferay.portos.bo.model.IntPratica;
import it.tref.liferay.portos.bo.service.AvvisoLocalServiceUtil;
import it.tref.liferay.portos.bo.service.ConfigurazioneLocalServiceUtil;
import it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants;
import it.tref.liferay.portos.bo.util.PraticaUtil;
import it.tref.liferay.portos.kaleo.hook.struts.RenderFormTaskPortletAction;
import it.tref.liferay.portos.kaleo.model.FormLog;
import it.tref.liferay.portos.kaleo.service.FormLogLocalServiceUtil;
import it.tref.liferay.portos.kaleo.shared.util.WorkflowConstants;
import java.io.Serializable;
import java.util.Collections;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import javax.portlet.PortletRequest;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.lang.StringUtils;
public class WorkflowUtil { public class WorkflowUtil {
public static final String PARAMETER_BASE64 = WorkflowConstants.PREFIX_NAME_ELEMENT_FORM + "base64" public static final String PARAMETER_BASE64 = WorkflowConstants.PREFIX_NAME_ELEMENT_FORM + "base64"
@ -104,6 +107,8 @@ public class WorkflowUtil {
return instance.getWorkflowContext(); return instance.getWorkflowContext();
} }
private static final Log _log = LogFactoryUtil.getLog(WorkflowUtil.class);
public static Map<String, Serializable> executeOnOpenForm(long companyId, long workflowTaskId, long assigneeUserId, public static Map<String, Serializable> executeOnOpenForm(long companyId, long workflowTaskId, long assigneeUserId,
String transitionName) throws PortalException, SystemException { String transitionName) throws PortalException, SystemException {

Caricamento…
Annulla
Salva