<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: mon utilisateur ne peut pas finir une tache in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/mon-utilisateur-ne-peut-pas-finir-une-tache/m-p/42343#M22793</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bonjour,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bien que fonctionnelle cette solution présente un inconvénient et de taille : la tâche est exécuté avec les permissions admin ce qui créé un gros trou de sécurité !&lt;/P&gt;&lt;P&gt;Pour bien faire, il aurait fallut modifier le chemin de génération du PDF pour un espace sur lequel les membres du groupes affecté à cette tâche disposent des droits suffisant pour écrire (et ou modifier).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yann&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jan 2017 15:01:29 GMT</pubDate>
    <dc:creator>ycoulon</dc:creator>
    <dc:date>2017-01-19T15:01:29Z</dc:date>
    <item>
      <title>mon utilisateur ne peut pas finir une tache</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/mon-utilisateur-ne-peut-pas-finir-une-tache/m-p/42339#M22789</link>
      <description>Bonjour,&amp;nbsp;j'ai cree un utilisateur qui appartient à un groupe Fonctionnaire. J'ai affecte une tache à ce groupe.&amp;nbsp; &amp;lt;userTask id="usertask5" name="User Task" activiti:candidateGroups="GROUP_Fonctionnaire" activiti:formKey="mincomdoc:submitDemande"&amp;gt;mais lorsque je me connecte avec cet utilisateur</description>
      <pubDate>Thu, 19 Jan 2017 14:09:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/mon-utilisateur-ne-peut-pas-finir-une-tache/m-p/42339#M22789</guid>
      <dc:creator>inaam</dc:creator>
      <dc:date>2017-01-19T14:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: mon utilisateur ne peut pas finir une tache</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/mon-utilisateur-ne-peut-pas-finir-une-tache/m-p/42340#M22790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bonjour,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pourriez-vous fournir le workflow dans son intégralité en attachant le fichier xml ainsi que les logs alfresco lors de l'action ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Par ailleurs, après la tâche que fait votre workflow ? Si vous avez du code (JS ou Java) effectuant des opérations sur des fichiers, il se peut que votre utilisateur ne dispose pas des droits (modification etc...) nécessaire à la réalisation de ces opérations ce qui entrainerait une erreur de ce type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yann&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 14:18:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/mon-utilisateur-ne-peut-pas-finir-une-tache/m-p/42340#M22790</guid>
      <dc:creator>ycoulon</dc:creator>
      <dc:date>2017-01-19T14:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: mon utilisateur ne peut pas finir une tache</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/mon-utilisateur-ne-peut-pas-finir-une-tache/m-p/42341#M22791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ci joint mon bpmn&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;definitions xmlns="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.omg.org/spec/BPMN/20100524/MODEL" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.omg.org/spec/BPMN/20100524/MODEL&lt;/A&gt;&lt;SPAN&gt;" xmlns:xsi="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;&lt;SPAN&gt;" xmlns:xsd="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;&lt;SPAN&gt;" xmlns:activiti="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://activiti.org/bpmn" rel="nofollow noopener noreferrer" target="_blank"&gt;http://activiti.org/bpmn&lt;/A&gt;&lt;SPAN&gt;" xmlns:bpmndi="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.omg.org/spec/BPMN/20100524/DI" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.omg.org/spec/BPMN/20100524/DI&lt;/A&gt;&lt;SPAN&gt;" xmlns&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;mgdc="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.omg.org/spec/DD/20100524/DC" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.omg.org/spec/DD/20100524/DC&lt;/A&gt;&lt;SPAN&gt;" xmlns&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;mgdi="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.omg.org/spec/DD/20100524/DI" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.omg.org/spec/DD/20100524/DI&lt;/A&gt;&lt;SPAN&gt;" typeLanguage="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;&lt;SPAN&gt;" expressionLanguage="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.w3.org/1999/XPath" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.w3.org/1999/XPath&lt;/A&gt;&lt;SPAN&gt;" targetNamespace="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.activiti.org/test" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.activiti.org/test&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt; &amp;lt;process id="docAdmin" name="docAdmin" isExecutable="true"&amp;gt;&lt;BR /&gt; &amp;lt;startEvent id="startevent1" name="Saisir Matricule" activiti:formKey="mincomdoc:submitDemande"&amp;gt;&amp;lt;/startEvent&amp;gt;&lt;BR /&gt; &amp;lt;endEvent id="endevent1" name="End"&amp;gt;&amp;lt;/endEvent&amp;gt;&lt;BR /&gt; &amp;lt;exclusiveGateway id="exclusivegateway1" name="Exclusive Gateway"&amp;gt;&amp;lt;/exclusiveGateway&amp;gt;&lt;BR /&gt; &amp;lt;userTask id="usertask2" name="mail notifier le fonctionnaire votre demande est prete" activiti:candidateGroups="GROUP_Agent_DAFF"&amp;gt;&amp;lt;/userTask&amp;gt;&lt;BR /&gt; &amp;lt;userTask id="usertask3" name="mail au fonctionnaire date prévu de livraison" activiti:candidateGroups="GROUP_Agent_DAFF"&amp;gt;&lt;BR /&gt; &amp;lt;extensionElements&amp;gt;&lt;BR /&gt; &amp;lt;activiti:taskListener event="create" class="tn.mincom.mail.sender.MailSender"&amp;gt;&amp;lt;/activiti:taskListener&amp;gt;&lt;BR /&gt; &amp;lt;/extensionElements&amp;gt;&lt;BR /&gt; &amp;lt;/userTask&amp;gt;&lt;BR /&gt; &amp;lt;userTask id="usertask4" name="Fournir la copie du document " activiti:candidateGroups="GROUP_Agent_DAFF" activiti:formKey="mincomdoc:submitCopieDoc"&amp;gt;&lt;BR /&gt; &amp;lt;extensionElements&amp;gt;&lt;BR /&gt; &amp;lt;activiti:taskListener event="create" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener"&amp;gt;&lt;BR /&gt; &amp;lt;activiti:field name="script"&amp;gt;&lt;BR /&gt; &amp;lt;activiti:string&amp;gt;&amp;lt;![CDATA[task.setVariableLocal('mincomdoc_matricule2','1236547');]]&amp;gt;&amp;lt;/activiti:string&amp;gt;&lt;BR /&gt; &amp;lt;/activiti:field&amp;gt;&lt;BR /&gt; &amp;lt;/activiti:taskListener&amp;gt;&lt;BR /&gt; &amp;lt;/extensionElements&amp;gt;&lt;BR /&gt; &amp;lt;/userTask&amp;gt;&lt;BR /&gt; &amp;lt;endEvent id="endevent2" name="End"&amp;gt;&amp;lt;/endEvent&amp;gt;&lt;BR /&gt; &amp;lt;sequenceFlow id="flow10" sourceRef="exclusivegateway1" targetRef="usertask4"&amp;gt;&lt;BR /&gt; &amp;lt;extensionElements&amp;gt;&lt;BR /&gt; &amp;lt;activiti:executionListener event="start" class="org.alfresco.repo.workflow.activiti.listener.ScriptExecutionListener"&amp;gt;&lt;BR /&gt; &amp;lt;activiti:field name="script"&amp;gt;&lt;BR /&gt; &amp;lt;activiti:string&amp;gt;&amp;lt;![CDATA[logger.log("Hello, "+execution.getVariable('isOriginal')+"!");]]&amp;gt;&amp;lt;/activiti:string&amp;gt;&lt;BR /&gt; &amp;lt;/activiti:field&amp;gt;&lt;BR /&gt; &amp;lt;/activiti:executionListener&amp;gt;&lt;BR /&gt; &amp;lt;/extensionElements&amp;gt;&lt;BR /&gt; &amp;lt;conditionExpression xsi:type="tFormalExpression"&amp;gt;&amp;lt;![CDATA[${mincomdoc_choixdoclist != 'Attestation du travail'}]]&amp;gt;&amp;lt;/conditionExpression&amp;gt;&lt;BR /&gt; &amp;lt;/sequenceFlow&amp;gt;&lt;BR /&gt; &amp;lt;sequenceFlow id="flow11" sourceRef="exclusivegateway1" targetRef="usertask3"&amp;gt;&lt;BR /&gt; &amp;lt;extensionElements&amp;gt;&lt;BR /&gt; &amp;lt;activiti:executionListener event="start" class="org.alfresco.repo.workflow.activiti.listener.ScriptExecutionListener"&amp;gt;&lt;BR /&gt; &amp;lt;activiti:field name="script"&amp;gt;&lt;BR /&gt; &amp;lt;activiti:string&amp;gt;&amp;lt;![CDATA[logger.log("Hello, "+execution.getVariable('isOriginal')+"!");]]&amp;gt;&amp;lt;/activiti:string&amp;gt;&lt;BR /&gt; &amp;lt;/activiti:field&amp;gt;&lt;BR /&gt; &amp;lt;/activiti:executionListener&amp;gt;&lt;BR /&gt; &amp;lt;/extensionElements&amp;gt;&lt;BR /&gt; &amp;lt;conditionExpression xsi:type="tFormalExpression"&amp;gt;&amp;lt;![CDATA[${mincomdoc_choixdoclist == 'Attestation du travail'}]]&amp;gt;&amp;lt;/conditionExpression&amp;gt;&lt;BR /&gt; &amp;lt;/sequenceFlow&amp;gt;&lt;BR /&gt; &amp;lt;sequenceFlow id="flow12" sourceRef="usertask4" targetRef="endevent2"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;BR /&gt; &amp;lt;sequenceFlow id="flow13" sourceRef="usertask3" targetRef="usertask2"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;BR /&gt; &amp;lt;sequenceFlow id="flow16" sourceRef="usertask2" targetRef="endevent1"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;BR /&gt; &amp;lt;serviceTask id="alfrescoScripttask1" name="Generer PDF et envoie mail au daffeur" activiti:class="org.alfresco.repo.workflow.activiti.script.AlfrescoScriptDelegate"&amp;gt;&lt;BR /&gt; &amp;lt;extensionElements&amp;gt;&lt;BR /&gt; &amp;lt;activiti:field name="script"&amp;gt;&lt;BR /&gt; &amp;lt;activiti:string&amp;gt;&amp;lt;![CDATA[pdfGenerator.generatePDF(execution , search.xpathSearch('/app:company_home')[0]);]]&amp;gt;&amp;lt;/activiti:string&amp;gt;&lt;BR /&gt; &amp;lt;/activiti:field&amp;gt;&lt;BR /&gt; &amp;lt;/extensionElements&amp;gt;&lt;BR /&gt; &amp;lt;/serviceTask&amp;gt;&lt;BR /&gt; &amp;lt;sequenceFlow id="flow18" sourceRef="alfrescoScripttask1" targetRef="exclusivegateway1"&amp;gt;&lt;BR /&gt; &amp;lt;extensionElements&amp;gt;&lt;BR /&gt; &amp;lt;activiti:executionListener event="start" class="org.alfresco.repo.workflow.activiti.listener.ScriptExecutionListener"&amp;gt;&lt;BR /&gt; &amp;lt;activiti:field name="script"&amp;gt;&lt;BR /&gt; &amp;lt;activiti:string&amp;gt;&amp;lt;![CDATA[var isOriginal ;&lt;BR /&gt;execution.setVariable( 'isOriginal' , (execution.getVariable('mincomdoc_choixdoclist')) =='Attestation du travail' ) ;&lt;BR /&gt;logger.log("Hello, "+execution.getVariable('isOriginal')+"!");]]&amp;gt;&amp;lt;/activiti:string&amp;gt;&lt;BR /&gt; &amp;lt;/activiti:field&amp;gt;&lt;BR /&gt; &amp;lt;/activiti:executionListener&amp;gt;&lt;BR /&gt; &amp;lt;/extensionElements&amp;gt;&lt;BR /&gt; &amp;lt;/sequenceFlow&amp;gt;&lt;BR /&gt; &amp;lt;userTask id="usertask5" name="User Task" activiti:candidateGroups="GROUP_Fonctionnaire" activiti:formKey="mincomdoc:submitDemande"&amp;gt;&lt;BR /&gt; &amp;lt;extensionElements&amp;gt;&lt;BR /&gt; &amp;lt;activiti:taskListener event="create" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener"&amp;gt;&lt;BR /&gt; &amp;lt;activiti:field name="script"&amp;gt;&lt;BR /&gt; &amp;lt;activiti:string&amp;gt;&amp;lt;![CDATA[execution.setVariable('mincomdoc_matricule','1236547');&lt;BR /&gt; logger.log("Hello, "+execution.getVariable('mincomdoc_matricule')+"!");]]&amp;gt;&amp;lt;/activiti:string&amp;gt;&lt;BR /&gt; &amp;lt;/activiti:field&amp;gt;&lt;BR /&gt; &amp;lt;/activiti:taskListener&amp;gt;&lt;BR /&gt; &amp;lt;/extensionElements&amp;gt;&lt;BR /&gt; &amp;lt;/userTask&amp;gt;&lt;BR /&gt; &amp;lt;sequenceFlow id="flow19" sourceRef="startevent1" targetRef="usertask5"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;BR /&gt; &amp;lt;sequenceFlow id="flow20" sourceRef="usertask5" targetRef="alfrescoScripttask1"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;BR /&gt; &amp;lt;/process&amp;gt;&lt;BR /&gt; &amp;lt;bpmndi:BPMNDiagram id="BPMNDiagram_docAdmin"&amp;gt;&lt;BR /&gt; &amp;lt;bpmndi:BPMNPlane bpmnElement="docAdmin" id="BPMNPlane_docAdmin"&amp;gt;&lt;BR /&gt; &amp;lt;bpmndi:BPMNShape bpmnElement="startevent1" id="BPMNShape_startevent1"&amp;gt;&lt;BR /&gt; &amp;lt;omgdc:Bounds height="35.0" width="35.0" x="30.0" y="243.0"&amp;gt;&amp;lt;/omgdc:Bounds&amp;gt;&lt;BR /&gt; &amp;lt;/bpmndi:BPMNShape&amp;gt;&lt;BR /&gt; &amp;lt;bpmndi:BPMNShape bpmnElement="endevent1" id="BPMNShape_endevent1"&amp;gt;&lt;BR /&gt; &amp;lt;omgdc:Bounds height="35.0" width="35.0" x="800.0" y="355.0"&amp;gt;&amp;lt;/omgdc:Bounds&amp;gt;&lt;BR /&gt; &amp;lt;/bpmndi:BPMNShape&amp;gt;&lt;BR /&gt; &amp;lt;bpmndi:BPMNShape bpmnElement="exclusivegateway1" id="BPMNShape_exclusivegateway1"&amp;gt;&lt;BR /&gt; &amp;lt;omgdc:Bounds height="40.0" width="40.0" x="360.0" y="240.0"&amp;gt;&amp;lt;/omgdc:Bounds&amp;gt;&lt;BR /&gt; &amp;lt;/bpmndi:BPMNShape&amp;gt;&lt;BR /&gt; &amp;lt;bpmndi:BPMNShape bpmnElement="usertask2" id="BPMNShape_usertask2"&amp;gt;&lt;BR /&gt; &amp;lt;omgdc:Bounds height="85.0" width="105.0" x="640.0" y="330.0"&amp;gt;&amp;lt;/omgdc:Bounds&amp;gt;&lt;BR /&gt; &amp;lt;/bpmndi:BPMNShape&amp;gt;&lt;BR /&gt; &amp;lt;bpmndi:BPMNShape bpmnElement="usertask3" id="BPMNShape_usertask3"&amp;gt;&lt;BR /&gt; &amp;lt;omgdc:Bounds height="91.0" width="115.0" x="440.0" y="330.0"&amp;gt;&amp;lt;/omgdc:Bounds&amp;gt;&lt;BR /&gt; &amp;lt;/bpmndi:BPMNShape&amp;gt;&lt;BR /&gt; &amp;lt;bpmndi:BPMNShape bpmnElement="usertask4" id="BPMNShape_usertask4"&amp;gt;&lt;BR /&gt; &amp;lt;omgdc:Bounds height="81.0" width="105.0" x="510.0" y="120.0"&amp;gt;&amp;lt;/omgdc:Bounds&amp;gt;&lt;BR /&gt; &amp;lt;/bpmndi:BPMNShape&amp;gt;&lt;BR /&gt; &amp;lt;bpmndi:BPMNShape bpmnElement="endevent2" id="BPMNShape_endevent2"&amp;gt;&lt;BR /&gt; &amp;lt;omgdc:Bounds height="35.0" width="35.0" x="712.0" y="143.0"&amp;gt;&amp;lt;/omgdc:Bounds&amp;gt;&lt;BR /&gt; &amp;lt;/bpmndi:BPMNShape&amp;gt;&lt;BR /&gt; &amp;lt;bpmndi:BPMNShape bpmnElement="alfrescoScripttask1" id="BPMNShape_alfrescoScripttask1"&amp;gt;&lt;BR /&gt; &amp;lt;omgdc:Bounds height="89.0" width="105.0" x="152.0" y="267.0"&amp;gt;&amp;lt;/omgdc:Bounds&amp;gt;&lt;BR /&gt; &amp;lt;/bpmndi:BPMNShape&amp;gt;&lt;BR /&gt; &amp;lt;bpmndi:BPMNShape bpmnElement="usertask5" id="BPMNShape_usertask5"&amp;gt;&lt;BR /&gt; &amp;lt;omgdc:Bounds height="55.0" width="105.0" x="65.0" y="120.0"&amp;gt;&amp;lt;/omgdc:Bounds&amp;gt;&lt;BR /&gt; &amp;lt;/bpmndi:BPMNShape&amp;gt;&lt;BR /&gt; &amp;lt;bpmndi:BPMNEdge bpmnElement="flow10" id="BPMNEdge_flow10"&amp;gt;&lt;BR /&gt; &amp;lt;omgdi:waypoint x="380.0" y="240.0"&amp;gt;&amp;lt;/omgdi:waypoint&amp;gt;&lt;BR /&gt; &amp;lt;omgdi:waypoint x="380.0" y="160.0"&amp;gt;&amp;lt;/omgdi:waypoint&amp;gt;&lt;BR /&gt; &amp;lt;omgdi:waypoint x="510.0" y="160.0"&amp;gt;&amp;lt;/omgdi:waypoint&amp;gt;&lt;BR /&gt; &amp;lt;/bpmndi:BPMNEdge&amp;gt;&lt;BR /&gt; &amp;lt;bpmndi:BPMNEdge bpmnElement="flow11" id="BPMNEdge_flow11"&amp;gt;&lt;BR /&gt; &amp;lt;omgdi:waypoint x="380.0" y="280.0"&amp;gt;&amp;lt;/omgdi:waypoint&amp;gt;&lt;BR /&gt; &amp;lt;omgdi:waypoint x="380.0" y="375.0"&amp;gt;&amp;lt;/omgdi:waypoint&amp;gt;&lt;BR /&gt; &amp;lt;omgdi:waypoint x="440.0" y="375.0"&amp;gt;&amp;lt;/omgdi:waypoint&amp;gt;&lt;BR /&gt; &amp;lt;/bpmndi:BPMNEdge&amp;gt;&lt;BR /&gt; &amp;lt;bpmndi:BPMNEdge bpmnElement="flow12" id="BPMNEdge_flow12"&amp;gt;&lt;BR /&gt; &amp;lt;omgdi:waypoint x="615.0" y="160.0"&amp;gt;&amp;lt;/omgdi:waypoint&amp;gt;&lt;BR /&gt; &amp;lt;omgdi:waypoint x="712.0" y="160.0"&amp;gt;&amp;lt;/omgdi:waypoint&amp;gt;&lt;BR /&gt; &amp;lt;/bpmndi:BPMNEdge&amp;gt;&lt;BR /&gt; &amp;lt;bpmndi:BPMNEdge bpmnElement="flow13" id="BPMNEdge_flow13"&amp;gt;&lt;BR /&gt; &amp;lt;omgdi:waypoint x="555.0" y="375.0"&amp;gt;&amp;lt;/omgdi:waypoint&amp;gt;&lt;BR /&gt; &amp;lt;omgdi:waypoint x="640.0" y="372.0"&amp;gt;&amp;lt;/omgdi:waypoint&amp;gt;&lt;BR /&gt; &amp;lt;/bpmndi:BPMNEdge&amp;gt;&lt;BR /&gt; &amp;lt;bpmndi:BPMNEdge bpmnElement="flow16" id="BPMNEdge_flow16"&amp;gt;&lt;BR /&gt; &amp;lt;omgdi:waypoint x="745.0" y="372.0"&amp;gt;&amp;lt;/omgdi:waypoint&amp;gt;&lt;BR /&gt; &amp;lt;omgdi:waypoint x="800.0" y="372.0"&amp;gt;&amp;lt;/omgdi:waypoint&amp;gt;&lt;BR /&gt; &amp;lt;/bpmndi:BPMNEdge&amp;gt;&lt;BR /&gt; &amp;lt;bpmndi:BPMNEdge bpmnElement="flow18" id="BPMNEdge_flow18"&amp;gt;&lt;BR /&gt; &amp;lt;omgdi:waypoint x="257.0" y="311.0"&amp;gt;&amp;lt;/omgdi:waypoint&amp;gt;&lt;BR /&gt; &amp;lt;omgdi:waypoint x="380.0" y="280.0"&amp;gt;&amp;lt;/omgdi:waypoint&amp;gt;&lt;BR /&gt; &amp;lt;/bpmndi:BPMNEdge&amp;gt;&lt;BR /&gt; &amp;lt;bpmndi:BPMNEdge bpmnElement="flow19" id="BPMNEdge_flow19"&amp;gt;&lt;BR /&gt; &amp;lt;omgdi:waypoint x="47.0" y="243.0"&amp;gt;&amp;lt;/omgdi:waypoint&amp;gt;&lt;BR /&gt; &amp;lt;omgdi:waypoint x="117.0" y="175.0"&amp;gt;&amp;lt;/omgdi:waypoint&amp;gt;&lt;BR /&gt; &amp;lt;/bpmndi:BPMNEdge&amp;gt;&lt;BR /&gt; &amp;lt;bpmndi:BPMNEdge bpmnElement="flow20" id="BPMNEdge_flow20"&amp;gt;&lt;BR /&gt; &amp;lt;omgdi:waypoint x="117.0" y="175.0"&amp;gt;&amp;lt;/omgdi:waypoint&amp;gt;&lt;BR /&gt; &amp;lt;omgdi:waypoint x="204.0" y="267.0"&amp;gt;&amp;lt;/omgdi:waypoint&amp;gt;&lt;BR /&gt; &amp;lt;/bpmndi:BPMNEdge&amp;gt;&lt;BR /&gt; &amp;lt;/bpmndi:BPMNPlane&amp;gt;&lt;BR /&gt; &amp;lt;/bpmndi:BPMNDiagram&amp;gt;&lt;BR /&gt;&amp;lt;/definitions&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apres la tache, j'execute un script 'alfrescoScripttask1' qui fait generer un pdf.&lt;/P&gt;&lt;P&gt;pdfGenerator.generatePDF(execution , search.xpathSearch('/app:company_home')[0]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mon log:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2017-01-19 15:11:34,409 DEBUG [repo.jscript.ScriptLogger] [http-apr-8181-exec-3] json form submission for item:&lt;BR /&gt; 2017-01-19 15:11:34,409 DEBUG [repo.jscript.ScriptLogger] [http-apr-8181-exec-3] kind = task&lt;BR /&gt; 2017-01-19 15:11:34,409 DEBUG [repo.jscript.ScriptLogger] [http-apr-8181-exec-3] id = activiti$16146&lt;BR /&gt; 2017-01-19 15:11:34,579 ERROR [pdf.generator.PdfGenerator] [http-apr-8181-exec-3] ==================== pdf generation started =======================&lt;BR /&gt; 2017-01-19 15:11:34,585 DEBUG [repo.jscript.ScriptLogger] [http-apr-8181-exec-3] org.alfresco.scripts.ScriptException: 00190049 Failed to execute supplied script: 00190048 Access refusé. Vous n'avez pas la permission de réaliser cette opération.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 14:37:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/mon-utilisateur-ne-peut-pas-finir-une-tache/m-p/42341#M22791</guid>
      <dc:creator>inaam</dc:creator>
      <dc:date>2017-01-19T14:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: mon utilisateur ne peut pas finir une tache</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/mon-utilisateur-ne-peut-pas-finir-une-tache/m-p/42342#M22792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Je pense que j'ai resolu le probleme, la permission est non autorise pour la generation du pdf.&lt;/P&gt;&lt;P&gt;j'ai modifie mon script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;serviceTask id="alfrescoScripttask1" name="Generer PDF et envoie mail au daffeur" activiti:class="org.alfresco.repo.workflow.activiti.script.AlfrescoScriptDelegate"&amp;gt;&lt;BR /&gt; &amp;lt;extensionElements&amp;gt;&lt;BR /&gt; &amp;lt;activiti:field name="script"&amp;gt;&lt;BR /&gt; &amp;lt;activiti:string&amp;gt;&amp;lt;![CDATA[pdfGenerator.generatePDF(execution , search.xpathSearch('/app:company_home')[0]);]]&amp;gt;&amp;lt;/activiti:string&amp;gt;&lt;BR /&gt; &amp;lt;/activiti:field&amp;gt;&lt;BR /&gt; &amp;lt;activiti:field name="runAs"&amp;gt;&lt;BR /&gt; &amp;lt;activiti:string&amp;gt;&amp;lt;&lt;STRONG&gt;![CDATA[admin]]&lt;/STRONG&gt;&amp;gt;&amp;lt;/activiti:string&amp;gt;&lt;BR /&gt; &amp;lt;/activiti:field&amp;gt;&lt;BR /&gt; &amp;lt;/extensionElements&amp;gt;&lt;BR /&gt; &amp;lt;/serviceTask&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;et maintenant ca marche.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Merci bien &lt;STRONG class="" style="color: #8b8b8b; background-color: #ffffff; border: 0px; font-weight: 200; font-size: 1.286rem; padding: 0px 0px 0px 30px;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit; font-size: 18.004px;"&gt;Yann Coulon&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 14:45:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/mon-utilisateur-ne-peut-pas-finir-une-tache/m-p/42342#M22792</guid>
      <dc:creator>inaam</dc:creator>
      <dc:date>2017-01-19T14:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: mon utilisateur ne peut pas finir une tache</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/mon-utilisateur-ne-peut-pas-finir-une-tache/m-p/42343#M22793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bonjour,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bien que fonctionnelle cette solution présente un inconvénient et de taille : la tâche est exécuté avec les permissions admin ce qui créé un gros trou de sécurité !&lt;/P&gt;&lt;P&gt;Pour bien faire, il aurait fallut modifier le chemin de génération du PDF pour un espace sur lequel les membres du groupes affecté à cette tâche disposent des droits suffisant pour écrire (et ou modifier).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yann&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 15:01:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/mon-utilisateur-ne-peut-pas-finir-une-tache/m-p/42343#M22793</guid>
      <dc:creator>ycoulon</dc:creator>
      <dc:date>2017-01-19T15:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: mon utilisateur ne peut pas finir une tache</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/mon-utilisateur-ne-peut-pas-finir-une-tache/m-p/42344#M22794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Merci beaucoup. C'est fait, et ca marche.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 15:17:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/mon-utilisateur-ne-peut-pas-finir-une-tache/m-p/42344#M22794</guid>
      <dc:creator>inaam</dc:creator>
      <dc:date>2017-01-19T15:17:07Z</dc:date>
    </item>
  </channel>
</rss>

