cancel
Showing results for 
Search instead for 
Did you mean: 

Asignar varios documentos a un workflow avanzado

novata_1535
Champ in-the-making
Champ in-the-making
Buenas!
estoy intentando asignar más de un documento a un workflow avanzado que creo a través de un script,
es decir en vez de sólo el documento que genera que se active el script:
workflow.execute(document);
que también asocie varios documentos más,
he probado varias maneras pero nada,
alguien me puede echar una mano?
Gracias.
2 REPLIES 2

novata_1535
Champ in-the-making
Champ in-the-making
Se me olvidó preguntar también, si alguien sabe que ficheros hay que modificar para poder utilizar los workflows avanzados, que están implementados, pero que no aparecen cuando creas un workflow avanzado desde el cliente web, como son:
parallelreview o submit

Saludos.

novata_1535
Champ in-the-making
Champ in-the-making
A la segunda pregunta ya le he encontrado solución, por si a alguien le viene bien… la dejo por aqui.
En el "bootstrap-context.xml" hay que activarlos:

 <bean id="workflowBootstrap" parent="workflowDeployer">
      <property name="workflowDefinitions">
         <list>
            <props>
               <prop key="engineId">jbpm</prop>
               <prop key="location">alfresco/workflow/review_processdefinition.xml</prop>
               <prop key="mimetype">text/xml</prop>
               <prop key="redeploy">false</prop>
            </props>
            <props>
               <prop key="engineId">jbpm</prop>
               <prop key="location">alfresco/workflow/adhoc_processdefinition.xml</prop>
               <prop key="mimetype">text/xml</prop>
               <prop key="redeploy">false</prop>
            </props>
            <props>
               <!– WCM workflow definition –>
                <prop key="engineId">jbpm</prop>
                <prop key="location">alfresco/workflow/submit_processdefinition.xml</prop>
                <prop key="mimetype">text/xml</prop>
                <prop key="redeploy">false</prop>
            </props>
            <props>
               <!– WCM workflow definition –>
               <prop key="engineId">jbpm</prop>
               <prop key="location">alfresco/workflow/changerequest_processdefinition.xml</prop>
               <prop key="mimetype">text/xml</prop>
               <prop key="redeploy">false</prop>


      </props>

            <props>
            <prop key="engineId">jbpm</prop>
                  <prop key="location">alfresco/workflow/submit_processdefinition.xml</prop>
                  <prop key="mimetype">text/xml</prop>
                  <prop key="redeploy">false</prop>
            </props>
         
         <props>
         <prop key="engineId">jbpm</prop>
         <prop key="location">alfresco/workflow/review_pooled_processdefinition.xml</prop>
         <prop key="mimetype">text/xml</prop>
         <prop key="redeploy">false</prop>
         </props>
         
         <props>
         <prop key="engineId">jbpm</prop>
         <prop key="location">alfresco/workflow//parallelreview_processdefinition.xml</prop>
         <prop key="mimetype">text/xml</prop>
         <prop key="redeploy">false</prop>
         </props>
         
         <props>
         <prop key="engineId">jbpm</prop>
         <prop key="location">alfresco/workflow/parallelreview_group_processdefinition.xml</prop>
         <prop key="mimetype">text/xml</prop>
         <prop key="redeploy">false</prop>



            </props>
         </list>

lanzas de nuevo el servidor y listo.
Espero que le sirva a alguien. Pero sigo sin saber como asignar varios documentos a un mismo workflow, si alguien lo sabe o se le ocurre algo se lo agradecería mucho.

Saludos.