cancel
Showing results for 
Search instead for 
Did you mean: 

Come posso selezionare l'assignee in un user task precedente?

mafaldap
Star Contributor
Star Contributor

Sto creando un workflow personalizzato e avrei bisogno di far selezionare l'assegnatario di un task in uno dei passaggi precedenti. Ho fatto un tentativo ma provandolo su Alfresco non viene riconosciuto l'assegnatario (nemmeno quello di gruppo) e non compaiono neanche i campi dei form personalizzati che ho definito. Riporto alcune parti del codice.

Nel file bpmn:

<userTask id="creaCS" name="Crea Certificato di Servizio" activiti:candidateGroups="DSGA" activiti:formKey="psw:activitiCreaCS">

    <extensionElements>

    <activiti:taskListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">

    <activiti:field name="script">

    <activiti:string><![CDATA[logger.log("Log Log");

    execution.setVariable('DSGAincaricato', task.getVariable('psw_DSGAincaricato'));

    execution.setVariable('DSincaricato', task.getVariable('psw_DSincaricato'));]]>

    </activiti:string>

    </activiti:field>

    </activiti:taskListener>

    </extensionElements>

    </userTask>

<userTask id="valutaCS" name="Valuta Certificato di Servizio" activiti:assignee="${DSincaricato.properties.userName}"activiti:formKey="psw:activitiValutaCS">

    <extensionElements>

    <activiti:taskListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">

    <activiti:field name="script">

    <activiti:string>if(task.getVariableLocal('psw_esitoValutazioneCS') == 'Approvato'){

    execution.setVariable('psw_prosegui', true);

    }else{

    execution.setVariable('psw_prosegui', false);

    }

    </activiti:string>

    </activiti:field>

    </activiti:taskListener>

    </extensionElements>

    </userTask>

Nel modello:

<type name="psw:activitiCreaCS">

  <parent>bpm:startTask</parent>

  <associations>

  <association name="pswSmiley Very HappySGAincaricato">

  <title>DSGA incaricato</title>

  <source>

  <mandatory>false</mandatory>

  <many>false</many>

  </source>

  <target>

  <class>cmSmiley Tongueerson</class>

  <mandatory>false</mandatory>

  <many>false</many>

  </target>

  </association>

  <association name="pswSmiley Very HappySincaricato">

  <title>DS incaricato</title>

  <source>

  <mandatory>false</mandatory>

  <many>false</many>

  </source>

  <target>

  <class>cmSmiley Tongueerson</class>

  <mandatory>false</mandatory>

  <many>false</many>

  </target>

  </association>

  </associations>

  </type>

  <type name="psw:activitiValutaCS">

  <parent>bpm:activitiOutcomeTask</parent>

  <properties>

  <property name="psw:esitoValutazioneCS">

  <type>d:text</type>

  <default>Respinto</default>

  <constraints>

  <constraint type="LIST">

  <parameter name="allowedValues">

  <list>

  <value>Approvato</value>

  <value>Respinto</value>

  </list>

  </parameter>

  </constraint>

  </constraints>

  </property>

  </properties>

  <overrides>

  <property name="bpmSmiley TongueackageItemActionGroup">

  <default>edit_package_item_actions</default>

  </property>

  <property name="bpmSmiley SurprisedutcomePropertyName">

  <default>{http://www.portaleScuola.com/model/workflow/1.0}esitoValutazioneCS</default>

  </property>

  </overrides>

  </type>

Sul progetto share:

<config evaluator="task-type" condition="psw:activitiCreaCS">

  <forms>

  <form id="workflow-details">

  <field-visibility>

  <show id="bpm:workflowDescription"/>

  <show id="packageItems"/>

  <show id="pswSmiley Very HappySGAincaricato"/>

  <show id="pswSmiley Very HappySincaricato"/>

  <show id="transitions"/>

  <show id="bpm:status"/>

  </field-visibility>

  <appearance>

  <set id="" appearance="title" label-id="workflow.set.general" />

               <set id="items" appearance="title" label-id="workflow.set.items" />

    <set id="progress" appearance="title" label-id="workflow.set.task.progress" />             

               <set id="other" appearance="title" label-id="workflow.set.other" />

             

               <field id="bpm:workflowDescription" label-id="workflow.field.message">

                  <control template="/org/alfresco/components/form/controls/textarea.ftl">

                     <control-param name="style">width: 95%</control-param>

                  </control>

               </field>

               <field id="packageItems" set="items" />

               <field set="actors" id="pswSmiley Very HappySGAincaricato">

               <control template="/org/alfresco/components/form/controls/authority.ftl">

             

               </control>

               </field>

               <field set="actors" id="pswSmiley Very HappySincaricato">

               <control template="/org/alfresco/components/form/controls/authority.ftl">

             

               </control>

               </field>

               <field id="bpm:status" set="progress" />

  </appearance>

  </form>

  <form>

  <field-visibility>

  <show id="bpm:workflowDescription"/>

  <show id="packageItems"/>

  <show id="pswSmiley Very HappySGAincaricato"/>

  <show id="pswSmiley Very HappySincaricato"/>

  <show id="transitions"/>

  <show id="bpm:status"/>

  </field-visibility>

  <appearance>

  <set id="" appearance="title" label-id="workflow.set.general" />

               <set id="items" appearance="title" label-id="workflow.set.items" />

    <set id="progress" appearance="title" label-id="workflow.set.task.progress" />             

               <set id="other" appearance="title" label-id="workflow.set.other" />

             

               <field id="bpm:workflowDescription" label-id="workflow.field.message">

                  <control template="/org/alfresco/components/form/controls/textarea.ftl">

                     <control-param name="style">width: 95%</control-param>

                  </control>

               </field>

               <field id="packageItems" set="items" />

               <field set="actors" id="pswSmiley Very HappySGAincaricato">

               <control template="/org/alfresco/components/form/controls/authority.ftl">

             

               </control>

               </field>

               <field set="actors" id="pswSmiley Very HappySincaricato">

               <control template="/org/alfresco/components/form/controls/authority.ftl">

             

               </control>

               </field>

               <field id="bpm:status" set="progress" />

  </appearance>

  </form>

  </forms>

</config>

12 REPLIES 12

davidciamberlan
Elite Collaborator
Elite Collaborator

Guarda per esperienza ti dico che è difficile che PJ si sbagli su certe cose...

In ogni caso sarebbe utile anche avere dei log relativi al momento dell'esecuzione del workflow per capire se vengono riportati errori.

Comunque questi sono i log relativi al workflow senza modifica:

12:08:33,488 DEBUG [org.alfresco.repo.jscript.ScriptLogger] Generating form for item:

12:08:33,489 DEBUG [org.alfresco.repo.jscript.ScriptLogger] kind = workflow

12:08:33,489 DEBUG [org.alfresco.repo.jscript.ScriptLogger] id = activiti$richiediCertificatoServizio

12:08:33,490 DEBUG [org.alfresco.repo.jscript.ScriptLogger] fields = bpm:workflowDescription,packageItems,transitions,bpm:status

12:08:33,539 DEBUG [org.alfresco.repo.jscript.ScriptLogger] formModel = {"item": "api\/workflow-definitions\/activiti$richiediCertificatoServizio:7:1804", "submissionUrl": "\/api\/workflow\/activiti%24richiediCertificatoServizio\/formprocessor", "type": "activiti$richiediCertificatoServizio", "fields": "[Lorg.alfresco.repo.forms.FieldDefinition;@62e22545", "formData": {"assoc_packageItems": "", "prop_bpm_status": "Not Yet Started", "prop_bpm_packageActionGroup": "add_package_item_actions", "prop_bpm_packageItemActionGroup": "start_package_item_actions"}}

12:08:53,201 DEBUG [org.alfresco.repo.jscript.ScriptLogger] json form submission for item:

12:08:53,202 DEBUG [org.alfresco.repo.jscript.ScriptLogger] kind = workflow

12:08:53,202 DEBUG [org.alfresco.repo.jscript.ScriptLogger] id = activiti$richiediCertificatoServizio

12:09:45,537 DEBUG [org.alfresco.repo.jscript.ScriptLogger] Generating form for item:

12:09:45,542 DEBUG [org.alfresco.repo.jscript.ScriptLogger] kind = task

12:09:45,542 DEBUG [org.alfresco.repo.jscript.ScriptLogger] id = activiti$start1805

12:09:45,543 DEBUG [org.alfresco.repo.jscript.ScriptLogger] fields = bpm:workflowDescription,packageItems,transitions,bpm:status

12:09:45,592 DEBUG [org.alfresco.repo.jscript.ScriptLogger] formModel = {"item": "api\/task-instances\/activiti$start1805", "submissionUrl": "\/api\/task\/activiti%24start1805\/formprocessor", "type": "psw:avviaRichiestaCS", "fields": "[Lorg.alfresco.repo.forms.FieldDefinition;@6225495f", "formData": {"prop_bpm_workflowDescription": "", "assoc_packageItems": "", "prop_transitions": "Next|Compito eseguito", "prop_bpm_status": "Completed", "prop_bpm_packageActionGroup": "add_package_item_actions", "prop_bpm_packageItemActionGroup": "start_package_item_actions"}}

12:19:09,828 DEBUG [org.alfresco.repo.jscript.ScriptLogger] Generating form for item:

12:19:09,830 DEBUG [org.alfresco.repo.jscript.ScriptLogger] kind = task

12:19:09,830 DEBUG [org.alfresco.repo.jscript.ScriptLogger] id = activiti$1847

12:19:09,832 DEBUG [org.alfresco.repo.jscript.ScriptLogger] fields = bpm:workflowDescription,packageItems,psw:DSGAincaricato,psw:DSincaricato,transitions,bpm:status

12:19:09,897 DEBUG [org.alfresco.repo.jscript.ScriptLogger] formModel = {"item": "api\/task-instances\/activiti$1847", "submissionUrl": "\/api\/task\/activiti%241847\/formprocessor", "type": "psw:activitiCreaCS", "fields": "[Lorg.alfresco.repo.forms.FieldDefinition;@5887cded", "formData": {"prop_bpm_workflowDescription": "", "assoc_packageItems": "", "assoc_psw_DSGAincaricato": "", "assoc_psw_DSincaricato": "", "prop_transitions": "Next|Compito eseguito", "prop_bpm_status": "Not Yet Started", "prop_bpm_packageActionGroup": "add_package_item_actions", "prop_bpm_packageItemActionGroup": "start_package_item_actions"}}

12:19:21,216 DEBUG [org.alfresco.repo.jscript.ScriptLogger] children type = node

12:19:21,219 DEBUG [org.alfresco.repo.jscript.ScriptLogger] argsSelectableType = cm:content

12:19:21,219 DEBUG [org.alfresco.repo.jscript.ScriptLogger] argsFilterType = null

12:19:21,219 DEBUG [org.alfresco.repo.jscript.ScriptLogger] argsSearchTerm =

12:19:21,219 DEBUG [org.alfresco.repo.jscript.ScriptLogger] argsMaxResults = 1000

12:19:21,219 DEBUG [org.alfresco.repo.jscript.ScriptLogger] argsXPath = null

12:19:21,219 DEBUG [org.alfresco.repo.jscript.ScriptLogger] argsSelectableMimeType = null

12:19:21,220 DEBUG [org.alfresco.repo.jscript.ScriptLogger] lastPathElement = children

12:19:21,525 DEBUG [org.alfresco.repo.jscript.ScriptLogger] Found 8 results

12:19:25,400 DEBUG [org.alfresco.repo.jscript.ScriptLogger] children type = node

12:19:25,401 DEBUG [org.alfresco.repo.jscript.ScriptLogger] argsSelectableType = cm:content

12:19:25,401 DEBUG [org.alfresco.repo.jscript.ScriptLogger] argsFilterType = null

12:19:25,401 DEBUG [org.alfresco.repo.jscript.ScriptLogger] argsSearchTerm =

12:19:25,401 DEBUG [org.alfresco.repo.jscript.ScriptLogger] argsMaxResults = 1000

12:19:25,401 DEBUG [org.alfresco.repo.jscript.ScriptLogger] argsXPath = null

12:19:25,401 DEBUG [org.alfresco.repo.jscript.ScriptLogger] argsSelectableMimeType = null

12:19:25,401 DEBUG [org.alfresco.repo.jscript.ScriptLogger] lastPathElement = children

12:19:25,423 DEBUG [org.alfresco.repo.jscript.ScriptLogger] Found 1 results

12:19:35,779 DEBUG [org.alfresco.repo.jscript.ScriptLogger] json form submission for item:

12:19:35,779 DEBUG [org.alfresco.repo.jscript.ScriptLogger] kind = task

12:19:35,779 DEBUG [org.alfresco.repo.jscript.ScriptLogger] id = activiti$1847

12:19:36,117 DEBUG [org.alfresco.repo.jscript.ScriptLogger] Log Log

12:19:43,996 DEBUG [org.alfresco.repo.jscript.ScriptLogger] Generating form for item:

12:19:43,997 DEBUG [org.alfresco.repo.jscript.ScriptLogger] kind = task

12:19:43,997 DEBUG [org.alfresco.repo.jscript.ScriptLogger] id = activiti$start1805

12:19:43,998 DEBUG [org.alfresco.repo.jscript.ScriptLogger] fields = bpm:workflowDescription,packageItems,transitions,bpm:status

12:19:44,038 DEBUG [org.alfresco.repo.jscript.ScriptLogger] formModel = {"item": "api\/task-instances\/activiti$start1805", "submissionUrl": "\/api\/task\/activiti%24start1805\/formprocessor", "type": "psw:avviaRichiestaCS", "fields": "[Lorg.alfresco.repo.forms.FieldDefinition;@6d5e2439", "formData": {"prop_bpm_workflowDescription": "", "assoc_packageItems": "workspace:\/\/SpacesStore\/79730125-b979-45c6-8f31-65410b40825a", "prop_transitions": "Next|Compito eseguito", "prop_bpm_status": "Completed", "prop_bpm_packageActionGroup": "add_package_item_actions", "prop_bpm_packageItemActionGroup": "start_package_item_actions"}}

12:19:44,719 DEBUG [org.alfresco.repo.jscript.ScriptLogger] #items = 1, #results = 1

12:19:48,705 DEBUG [org.alfresco.repo.jscript.ScriptLogger] Generating form for item:

12:19:48,706 DEBUG [org.alfresco.repo.jscript.ScriptLogger] kind = task

12:19:48,707 DEBUG [org.alfresco.repo.jscript.ScriptLogger] id = activiti$1889

12:19:48,707 DEBUG [org.alfresco.repo.jscript.ScriptLogger] fields = bpm:workflowDescription,packageItems,psw:esitoValutazioneCS,transitions

12:19:48,739 DEBUG [org.alfresco.repo.jscript.ScriptLogger] formModel = {"item": "api\/task-instances\/activiti$1889", "submissionUrl": "\/api\/task\/activiti%241889\/formprocessor", "type": "psw:activitiValutaCS", "fields": "[Lorg.alfresco.repo.forms.FieldDefinition;@666adbc5", "formData": {"assoc_packageItems": "workspace:\/\/SpacesStore\/79730125-b979-45c6-8f31-65410b40825a", "prop_psw_esitoValutazioneCS": "Respinto", "prop_transitions": "Next|Compito eseguito", "prop_bpm_packageActionGroup": "", "prop_bpm_packageItemActionGroup": "edit_package_item_actions"}}

12:19:56,645 DEBUG [org.alfresco.repo.jscript.ScriptLogger] #items = 1, #results = 1

12:20:03,582 DEBUG [org.alfresco.repo.jscript.ScriptLogger] json form submission for item:

12:20:03,582 DEBUG [org.alfresco.repo.jscript.ScriptLogger] kind = task

12:20:03,582 DEBUG [org.alfresco.repo.jscript.ScriptLogger] id = activiti$1889

12:20:11,559 DEBUG [org.alfresco.repo.jscript.ScriptLogger] Generating form for item:

12:20:11,559 DEBUG [org.alfresco.repo.jscript.ScriptLogger] kind = task

12:20:11,559 DEBUG [org.alfresco.repo.jscript.ScriptLogger] id = activiti$start1805

12:20:11,560 DEBUG [org.alfresco.repo.jscript.ScriptLogger] fields = bpm:workflowDescription,packageItems,transitions,bpm:status

12:20:11,589 DEBUG [org.alfresco.repo.jscript.ScriptLogger] formModel = {"item": "api\/task-instances\/activiti$start1805", "submissionUrl": "\/api\/task\/activiti%24start1805\/formprocessor", "type": "psw:avviaRichiestaCS", "fields": "[Lorg.alfresco.repo.forms.FieldDefinition;@6b0c0533", "formData": {"prop_bpm_workflowDescription": "", "assoc_packageItems": "workspace:\/\/SpacesStore\/79730125-b979-45c6-8f31-65410b40825a", "prop_transitions": "Next|Compito eseguito", "prop_bpm_status": "Completed", "prop_bpm_packageActionGroup": "add_package_item_actions", "prop_bpm_packageItemActionGroup": "start_package_item_actions"}}

12:20:14,352 DEBUG [org.alfresco.repo.jscript.ScriptLogger] #items = 1, #results = 1

12:20:21,757 DEBUG [org.alfresco.repo.jscript.ScriptLogger] Generating form for item:

12:20:21,757 DEBUG [org.alfresco.repo.jscript.ScriptLogger] kind = task

12:20:21,758 DEBUG [org.alfresco.repo.jscript.ScriptLogger] id = activiti$1928

12:20:21,758 DEBUG [org.alfresco.repo.jscript.ScriptLogger] fields = bpm:workflowDescription,packageItems,psw:sceltaRevisione,transitions

12:20:21,783 DEBUG [org.alfresco.repo.jscript.ScriptLogger] formModel = {"item": "api\/task-instances\/activiti$1928", "submissionUrl": "\/api\/task\/activiti%241928\/formprocessor", "type": "psw:activitiRevisionaCS", "fields": "[Lorg.alfresco.repo.forms.FieldDefinition;@1c2acebc", "formData": {"assoc_packageItems": "workspace:\/\/SpacesStore\/79730125-b979-45c6-8f31-65410b40825a", "prop_psw_sceltaRevisione": "Abbandona", "prop_transitions": "Next|Compito eseguito", "prop_bpm_packageActionGroup": "", "prop_bpm_packageItemActionGroup": "edit_package_item_actions"}}

12:20:28,148 DEBUG [org.alfresco.repo.jscript.ScriptLogger] #items = 1, #results = 1

12:20:35,222 DEBUG [org.alfresco.repo.jscript.ScriptLogger] json form submission for item:

12:20:35,223 DEBUG [org.alfresco.repo.jscript.ScriptLogger] kind = task

12:20:35,223 DEBUG [org.alfresco.repo.jscript.ScriptLogger] id = activiti$1928

12:20:43,402 DEBUG [org.alfresco.repo.jscript.ScriptLogger] Generating form for item:

12:20:43,403 DEBUG [org.alfresco.repo.jscript.ScriptLogger] kind = task

12:20:43,403 DEBUG [org.alfresco.repo.jscript.ScriptLogger] id = activiti$start1805

12:20:43,403 DEBUG [org.alfresco.repo.jscript.ScriptLogger] fields = bpm:workflowDescription,packageItems,transitions,bpm:status

12:20:43,425 DEBUG [org.alfresco.repo.jscript.ScriptLogger] formModel = {"item": "api\/task-instances\/activiti$start1805", "submissionUrl": "\/api\/task\/activiti%24start1805\/formprocessor", "type": "psw:avviaRichiestaCS", "fields": "[Lorg.alfresco.repo.forms.FieldDefinition;@20a6248f", "formData": {"prop_bpm_workflowDescription": "", "assoc_packageItems": "workspace:\/\/SpacesStore\/79730125-b979-45c6-8f31-65410b40825a", "prop_transitions": "Next|Compito eseguito", "prop_bpm_status": "Completed", "prop_bpm_packageActionGroup": "add_package_item_actions", "prop_bpm_packageItemActionGroup": "start_package_item_actions"}}

12:20:46,361 DEBUG [org.alfresco.repo.jscript.ScriptLogger] #items = 1, #results = 1

12:20:57,044 DEBUG [org.alfresco.repo.jscript.ScriptLogger] Generating form for item:

12:20:57,045 DEBUG [org.alfresco.repo.jscript.ScriptLogger] kind = task

12:20:57,045 DEBUG [org.alfresco.repo.jscript.ScriptLogger] id = activiti$1967

12:20:57,045 DEBUG [org.alfresco.repo.jscript.ScriptLogger] fields = bpm:workflowDescription,packageItems,psw:DSGAincaricato,psw:DSincaricato,transitions,bpm:status

12:20:57,065 DEBUG [org.alfresco.repo.jscript.ScriptLogger] formModel = {"item": "api\/task-instances\/activiti$1967", "submissionUrl": "\/api\/task\/activiti%241967\/formprocessor", "type": "psw:activitiCreaCS", "fields": "[Lorg.alfresco.repo.forms.FieldDefinition;@2903519", "formData": {"prop_bpm_workflowDescription": "", "assoc_packageItems": "workspace:\/\/SpacesStore\/79730125-b979-45c6-8f31-65410b40825a", "assoc_psw_DSGAincaricato": "", "assoc_psw_DSincaricato": "", "prop_transitions": "Next|Compito eseguito", "prop_bpm_status": "Not Yet Started", "prop_bpm_packageActionGroup": "add_package_item_actions", "prop_bpm_packageItemActionGroup": "start_package_item_actions"}}

12:21:03,400 DEBUG [org.alfresco.repo.jscript.ScriptLogger] #items = 1, #results = 1

12:21:23,491 DEBUG [org.alfresco.repo.jscript.ScriptLogger] json form submission for item:

12:21:23,492 DEBUG [org.alfresco.repo.jscript.ScriptLogger] kind = task

12:21:23,492 DEBUG [org.alfresco.repo.jscript.ScriptLogger] id = activiti$1967

12:21:23,597 DEBUG [org.alfresco.repo.jscript.ScriptLogger] Log Log

12:21:30,587 DEBUG [org.alfresco.repo.jscript.ScriptLogger] Generating form for item:

12:21:30,587 DEBUG [org.alfresco.repo.jscript.ScriptLogger] kind = task

12:21:30,587 DEBUG [org.alfresco.repo.jscript.ScriptLogger] id = activiti$start1805

12:21:30,587 DEBUG [org.alfresco.repo.jscript.ScriptLogger] fields = bpm:workflowDescription,packageItems,transitions,bpm:status

12:21:30,614 DEBUG [org.alfresco.repo.jscript.ScriptLogger] formModel = {"item": "api\/task-instances\/activiti$start1805", "submissionUrl": "\/api\/task\/activiti%24start1805\/formprocessor", "type": "psw:avviaRichiestaCS", "fields": "[Lorg.alfresco.repo.forms.FieldDefinition;@15cca148", "formData": {"prop_bpm_workflowDescription": "", "assoc_packageItems": "workspace:\/\/SpacesStore\/79730125-b979-45c6-8f31-65410b40825a", "prop_transitions": "Next|Compito eseguito", "prop_bpm_status": "Completed", "prop_bpm_packageActionGroup": "add_package_item_actions", "prop_bpm_packageItemActionGroup": "start_package_item_actions"}}

12:21:31,209 DEBUG [org.alfresco.repo.jscript.ScriptLogger] #items = 1, #results = 1

12:21:34,263 DEBUG [org.alfresco.repo.jscript.ScriptLogger] Generating form for item:

12:21:34,263 DEBUG [org.alfresco.repo.jscript.ScriptLogger] kind = task

12:21:34,263 DEBUG [org.alfresco.repo.jscript.ScriptLogger] id = activiti$2005

12:21:34,264 DEBUG [org.alfresco.repo.jscript.ScriptLogger] fields = bpm:workflowDescription,packageItems,psw:esitoValutazioneCS,transitions

12:21:34,290 DEBUG [org.alfresco.repo.jscript.ScriptLogger] formModel = {"item": "api\/task-instances\/activiti$2005", "submissionUrl": "\/api\/task\/activiti%242005\/formprocessor", "type": "psw:activitiValutaCS", "fields": "[Lorg.alfresco.repo.forms.FieldDefinition;@3c9bdd4a", "formData": {"assoc_packageItems": "workspace:\/\/SpacesStore\/79730125-b979-45c6-8f31-65410b40825a", "prop_psw_esitoValutazioneCS": "Respinto", "prop_transitions": "Next|Compito eseguito", "prop_bpm_packageActionGroup": "", "prop_bpm_packageItemActionGroup": "edit_package_item_actions"}}

12:21:40,350 DEBUG [org.alfresco.repo.jscript.ScriptLogger] #items = 1, #results = 1

12:21:56,358 DEBUG [org.alfresco.repo.jscript.ScriptLogger] json form submission for item:

12:21:56,358 DEBUG [org.alfresco.repo.jscript.ScriptLogger] kind = task

12:21:56,359 DEBUG [org.alfresco.repo.jscript.ScriptLogger] id = activiti$2005

12:22:04,404 DEBUG [org.alfresco.repo.jscript.ScriptLogger] Generating form for item:

12:22:04,404 DEBUG [org.alfresco.repo.jscript.ScriptLogger] kind = task

12:22:04,404 DEBUG [org.alfresco.repo.jscript.ScriptLogger] id = activiti$start1805

12:22:04,405 DEBUG [org.alfresco.repo.jscript.ScriptLogger] fields = bpm:workflowDescription,packageItems,transitions,bpm:status

12:22:04,433 DEBUG [org.alfresco.repo.jscript.ScriptLogger] formModel = {"item": "api\/task-instances\/activiti$start1805", "submissionUrl": "\/api\/task\/activiti%24start1805\/formprocessor", "type": "psw:avviaRichiestaCS", "fields": "[Lorg.alfresco.repo.forms.FieldDefinition;@386d8959", "formData": {"prop_bpm_workflowDescription": "", "assoc_packageItems": "workspace:\/\/SpacesStore\/79730125-b979-45c6-8f31-65410b40825a", "prop_transitions": "Next|Compito eseguito", "prop_bpm_status": "Completed", "prop_bpm_packageActionGroup": "add_package_item_actions", "prop_bpm_packageItemActionGroup": "start_package_item_actions"}}

12:22:07,356 DEBUG [org.alfresco.repo.jscript.ScriptLogger] #items = 1, #results = 1

12:22:18,585 DEBUG [org.alfresco.repo.jscript.ScriptLogger] Generating form for item:

12:22:18,585 DEBUG [org.alfresco.repo.jscript.ScriptLogger] kind = task

12:22:18,585 DEBUG [org.alfresco.repo.jscript.ScriptLogger] id = activiti$2043

12:22:18,586 DEBUG [org.alfresco.repo.jscript.ScriptLogger] fields = bpm:workflowDescription,packageItems,transitions,bpm:status

12:22:18,602 DEBUG [org.alfresco.repo.jscript.ScriptLogger] formModel = {"item": "api\/task-instances\/activiti$2043", "submissionUrl": "\/api\/task\/activiti%242043\/formprocessor", "type": "psw:activitiNotificaApprovazione", "fields": "[Lorg.alfresco.repo.forms.FieldDefinition;@1f23879c", "formData": {"assoc_packageItems": "workspace:\/\/SpacesStore\/79730125-b979-45c6-8f31-65410b40825a", "prop_transitions": "Next|Compito eseguito", "prop_bpm_status": "Not Yet Started", "prop_bpm_packageActionGroup": "", "prop_bpm_packageItemActionGroup": "read_package_item_actions"}}

12:22:25,233 DEBUG [org.alfresco.repo.jscript.ScriptLogger] #items = 1, #results = 1

12:22:31,197 DEBUG [org.alfresco.repo.jscript.ScriptLogger] json form submission for item:

12:22:31,197 DEBUG [org.alfresco.repo.jscript.ScriptLogger] kind = task

12:22:31,197 DEBUG [org.alfresco.repo.jscript.ScriptLogger] id = activiti$2043

12:22:38,605 DEBUG [org.alfresco.repo.jscript.ScriptLogger] Generating form for item:

12:22:38,606 DEBUG [org.alfresco.repo.jscript.ScriptLogger] kind = task

12:22:38,606 DEBUG [org.alfresco.repo.jscript.ScriptLogger] id = activiti$start1805

12:22:38,607 DEBUG [org.alfresco.repo.jscript.ScriptLogger] fields = bpm:workflowDescription,packageItems,transitions,bpm:status

12:22:38,629 DEBUG [org.alfresco.repo.jscript.ScriptLogger] formModel = {"item": "api\/task-instances\/activiti$start1805", "submissionUrl": "\/api\/task\/activiti%24start1805\/formprocessor", "type": "psw:avviaRichiestaCS", "fields": "[Lorg.alfresco.repo.forms.FieldDefinition;@34b65128", "formData": {"prop_bpm_workflowDescription": "", "assoc_packageItems": "workspace:\/\/SpacesStore\/79730125-b979-45c6-8f31-65410b40825a", "prop_transitions": "Next|Compito eseguito", "prop_bpm_status": "Completed", "prop_bpm_packageActionGroup": "add_package_item_actions", "prop_bpm_packageItemActionGroup": "start_package_item_actions"}}

mafaldap
Star Contributor
Star Contributor

Ho tentato un'altra strada per il mio workflow (allego il workflow, il modello e la configurazione).

Inserendo GROUP_DSGA mi dava errore dopo il primo form, cosa che invece non accade con DSGA (anche se ovviamente il task risulta non assegnato quando faccio partire il lavoro). Sono riuscita a far comparire la selezione dell'assegnatario per "Produci un certificato di servizio" tuttavia non appena clicco su compito eseguito:

Schermata 2016-10-20 alle 15.49.54.png

Qualcuno ha idea di cosa stia accadendo?