probème au niveau d'une transaction

cancel
Showing results for 
Search instead for 
Did you mean: 
slipknotik
Active Member

probème au niveau d'une transaction

Salut a tous j'ai un workflow qui me génére une erreur au niveau d'une transaction "envoie doc"

    * Une erreur système s'est produite pendant l'opération : Failed to signal transition 'envoie doc' from workflow task 'jbpm$63'

voila la trace de l'erreur
08:55:58,046 User:fares ERROR [ui.common.Utils] Une erreur systme s'est produit
e pendant l'opration : Failed to signal transition 'envoie doc' from workflow t
ask 'jbpm$63'
org.alfresco.service.cmr.workflow.WorkflowException: Failed to signal transition
'envoie doc' from workflow task 'jbpm$63'
        at org.alfresco.repo.workflow.jbpm.JBPMEngine.endTask(JBPMEngine.java:17
17)
        at org.alfresco.repo.workflow.WorkflowServiceImpl.endTask(WorkflowServic
eImpl.java:544)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflecti
on(AopUtils.java:296)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJo
inpoint(ReflectiveMethodInvocation.java:177)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:144)
        at org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterc
eptor.invoke(AlwaysProceedMethodInterceptor.java:40)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:166)
        at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethod
Interceptor.invoke(ExceptionTranslatorMethodInterceptor.java:49)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:166)
        at org.alfresco.repo.audit.AuditComponentImpl.audit(AuditComponentImpl.j
ava:275)
        at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInte
rceptor.java:69)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:166)
        at org.springframework.transaction.interceptor.TransactionInterceptor.in
voke(TransactionInterceptor.java:107)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:166)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynami
cAopProxy.java:204)
        at $Proxy51.endTask(Unknown Source)
        at org.alfresco.web.bean.workflow.ManageTaskDialog.transition(ManageTask
Dialog.java:390)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java
:132)
        at org.apache.myfaces.application.ActionListenerImpl.processAction(Actio
nListenerImpl.java:61)
        at javax.faces.component.UICommand.broadcast(UICommand.java:109)
        at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:9
7)
        at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1
71)
        at org.apache.myfaces.lifecycle.InvokeApplicationExecutor.execute(Invoke
ApplicationExecutor.java:32)
        at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl
.java:95)
        at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java
:70)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:139)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
        at org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(Authentica
tionFilter.java:81)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:128)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:286)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:845)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ss(Http11Protocol.java:583)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44
7)
        at java.lang.Thread.run(Thread.java:619)
Caused by: org.jbpm.graph.def.DelegationException: Failed to execute supplied sc
ript: il manque un nom aprs un oprateur '.' (AlfrescoScript#1)
        at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:387)

        at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:378)

        at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:281)
        at org.jbpm.graph.def.GraphElement.executeActions(GraphElement.java:220)

        at org.jbpm.graph.def.GraphElement.fireAndPropagateEvent(GraphElement.ja
va:190)
        at org.jbpm.graph.def.GraphElement.fireEvent(GraphElement.java:174)
        at org.jbpm.graph.def.Transition.take(Transition.java:138)
        at org.jbpm.graph.def.Node.leave(Node.java:394)
        at org.jbpm.graph.node.TaskNode.leave(TaskNode.java:209)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyI
nitializer.java:157)
        at org.jbpm.graph.node.TaskNode$$EnhancerByCGLIB$$f11596cc.leave(<genera
ted>)
        at org.jbpm.graph.exe.Token.signal(Token.java:195)
        at org.jbpm.graph.exe.Token.signal(Token.java:166)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyI
nitializer.java:157)
        at org.jbpm.graph.exe.Token$$EnhancerByCGLIB$$635e4716.signal(<generated
>)
        at org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:488)
        at org.alfresco.repo.workflow.jbpm.WorkflowTaskInstance.end(WorkflowTask
Instance.java:133)
        at org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:427)
        at org.alfresco.repo.workflow.jbpm.JBPMEngine$26.doInJbpm(JBPMEngine.jav
a:1702)
        at org.springmodules.workflow.jbpm31.JbpmTemplate$1.doInHibernate(JbpmTe
mplate.java:87)
        at org.springframework.orm.hibernate3.HibernateTemplate.execute(Hibernat
eTemplate.java:372)
        at org.springframework.orm.hibernate3.HibernateTemplate.execute(Hibernat
eTemplate.java:338)
        at org.springmodules.workflow.jbpm31.JbpmTemplate.execute(JbpmTemplate.j
ava:80)
        at org.alfresco.repo.workflow.jbpm.JBPMEngine.endTask(JBPMEngine.java:16
70)
        … 48 more
Caused by: org.alfresco.scripts.ScriptException: Failed to execute supplied scri
pt: il manque un nom aprs un oprateur '.' (AlfrescoScript#1)
        at org.alfresco.repo.jscript.RhinoScriptProcessor.executeString(RhinoScr
iptProcessor.java:195)
        at org.alfresco.repo.processor.ScriptServiceImpl.executeScriptString(Scr
iptServiceImpl.java:303)
        at org.alfresco.repo.processor.ScriptServiceImpl.executeScriptString(Scr
iptServiceImpl.java:281)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflecti
on(AopUtils.java:296)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJo
inpoint(ReflectiveMethodInvocation.java:177)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:144)
        at org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterc
eptor.invoke(AlwaysProceedMethodInterceptor.java:40)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:166)
        at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethod
Interceptor.invoke(ExceptionTranslatorMethodInterceptor.java:49)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:166)
        at org.alfresco.repo.audit.AuditComponentImpl.audit(AuditComponentImpl.j
ava:275)
        at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInte
rceptor.java:69)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:166)
        at org.springframework.transaction.interceptor.TransactionInterceptor.in
voke(TransactionInterceptor.java:107)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:166)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynami
cAopProxy.java:204)
        at $Proxy177.executeScriptString(Unknown Source)
        at org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript.executeScript(Alfr
escoJavaScript.java:178)
        at org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript.execute(AlfrescoJa
vaScript.java:132)
        at org.jbpm.graph.def.Action.execute(Action.java:122)
        at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:264)
        … 77 more
Caused by: org.alfresco.error.AlfrescoRuntimeException: il manque un nom aprs u
n oprateur '.' (AlfrescoScript#1)
        at org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(Rhin
oScriptProcessor.java:406)
        at org.alfresco.repo.jscript.RhinoScriptProcessor.executeString(RhinoScr
iptProcessor.java:191)
        … 101 more
Caused by: org.mozilla.javascript.EvaluatorException: il manque un nom aprs un
oprateur '.' (AlfrescoScript#1)
        at org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultError
Reporter.java:109)
        at org.mozilla.javascript.DefaultErrorReporter.error(DefaultErrorReporte
r.java:96)
        at org.mozilla.javascript.Parser.addError(Parser.java:140)
        at org.mozilla.javascript.Parser.reportError(Parser.java:154)
        at org.mozilla.javascript.Parser.memberExprTail(Parser.java:1787)
        at org.mozilla.javascript.Parser.memberExpr(Parser.java:1732)
        at org.mozilla.javascript.Parser.unaryExpr(Parser.java:1590)
        at org.mozilla.javascript.Parser.mulExpr(Parser.java:1519)
        at org.mozilla.javascript.Parser.addExpr(Parser.java:1500)
        at org.mozilla.javascript.Parser.shiftExpr(Parser.java:1480)
        at org.mozilla.javascript.Parser.relExpr(Parser.java:1454)
        at org.mozilla.javascript.Parser.eqExpr(Parser.java:1410)
        at org.mozilla.javascript.Parser.bitAndExpr(Parser.java:1399)
        at org.mozilla.javascript.Parser.bitXorExpr(Parser.java:1388)
        at org.mozilla.javascript.Parser.bitOrExpr(Parser.java:1377)
        at org.mozilla.javascript.Parser.andExpr(Parser.java:1365)
        at org.mozilla.javascript.Parser.orExpr(Parser.java:1353)
        at org.mozilla.javascript.Parser.condExpr(Parser.java:1336)
        at org.mozilla.javascript.Parser.assignExpr(Parser.java:1321)
        at org.mozilla.javascript.Parser.assignExpr(Parser.java:1327)
        at org.mozilla.javascript.Parser.expr(Parser.java:1308)
        at org.mozilla.javascript.Parser.statementHelper(Parser.java:1161)
        at org.mozilla.javascript.Parser.statement(Parser.java:655)
        at org.mozilla.javascript.Parser.statements(Parser.java:603)
        at org.mozilla.javascript.Parser.statementHelper(Parser.java:1107)
        at org.mozilla.javascript.Parser.statement(Parser.java:655)
        at org.mozilla.javascript.Parser.parse(Parser.java:377)
        at org.mozilla.javascript.Parser.parse(Parser.java:315)
        at org.mozilla.javascript.Context.compileImpl(Context.java:2320)
        at org.mozilla.javascript.Context.compileString(Context.java:1348)
        at org.mozilla.javascript.Context.compileString(Context.java:1337)
        at org.mozilla.javascript.Context.evaluateString(Context.java:1193)
        at org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(Rhin
oScriptProcessor.java:390)
        … 102 more

voila mon fichier validation_processdefinition.xml :

<?xml version="1.0" encoding="UTF-8"?>

<process-definition  xmlns="urn:jbpm.org:jpdl-3.2"  name="wf:validation">
   <swimlane name="initiator"></swimlane>   
   <swimlane name="RO">
   <assignment actor-id="RO"/>
   </swimlane>
   <swimlane name="RS">
   <assignment actor-id="RS"/>
   </swimlane>
   <swimlane name="DG">
   <assignment actor-id="DG"/>
   </swimlane>
   <start-state name="Debut">
   <task name="wf:Submit" swimlane="initiator"/>
      <transition to="Commercial">
            
      </transition>
   </start-state>


   <task-node name="RS">
   <task name="wf:RS_Tache" swimlane="RS"/>
   
      <transition to="RO" name="Reviser">
      <action  class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
      <script>
         {
      var mail= actions.create("mail");
      mail.parameters.to=RO.properties.["cm:email"];
      mail.parameters.from=RS.properties.["cm:email"];
      mail.parameters.subject="Validation Doc: pour action";
      mail.parameters.text= "Veuillez corriger le document" ;
       }
      </script>
      <script>
      
         {
      var mail= actions.create("mail");
      mail.parameters.to=initiator.properties.["cm:email"];
      mail.parameters.from=RS.properties.["cm:email"];
      mail.parameters.subject="Validation Doc : pour info";
      mail.parameters.text= "Le document doit tre rviser" ;
       }
      
      </script>
      </action>
      
      
      
      </transition>
      <transition to="DG" name="valider RS">
      <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
      <script>
            {
      var mail= actions.create("mail");
      mail.parameters.to=RS.properties.["cm:email"];
      mail.parameters.from=DG.properties.["cm:email"];
      mail.parameters.subject="Validation Doc :pour action";
      mail.parameters.text= "Veuiller examiner le document" ;
       }
      
      </script>
      
      
      </action>
      
      
      </transition>
   </task-node>

   <task-node name="RO">
   <task name="wf:RO_Tache" swimlane="RO"/>
      <transition to="Commercial" name="envoie version corrige">
      <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
      <script>
            {
      var mail= actions.create("mail");
      mail.parameters.to=initiator.properties.["cm:email"];
      mail.parameters.from=RO.properties.["cm:email"];
      mail.parameters.subject="Validation Doc : Pour action";
      mail.parameters.text= "Le document est corrig" ;
       }
      </script>
      </action>
      
      
      
      </transition>
   </task-node>

   <task-node name="DG">
   <task  name="wf:DG_Tache" swimlane="DG"/>
      <transition to="RO" name="reviser DG">
      <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
      <script>
            {
      var mail= actions.create("mail");
      mail.parameters.to=RO.properties.["cm:email"];
      mail.parameters.from=DG.properties.["cm:email"];
      mail.parameters.subject="Validation Doc : Pour action";
      mail.parameters.text= "Le document doit tre rviser" ;
       }
      </script>
      </action>
      <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">>
         <script>
            {
      var mail= actions.create("mail");
      mail.parameters.to=RS.properties.["cm:email"];
      mail.parameters.from=DG.properties.["cm:email"];
      mail.parameters.subject="Validation Doc : Pour info";
      mail.parameters.text= "Le document doit tre rviser" ;
       }
      </script>
      </action>
      <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
         <script>
            {
      var mail= actions.create("mail");
      mail.parameters.to=initiator.properties.["cm:email"];
      mail.parameters.from=DG.properties.["cm:email"];
      mail.parameters.subject="Validation Doc : Pour info";
      mail.parameters.text= "Le document doit tre rviser";
       }
      </script>
      </action>
      </transition>
      <transition to="Commercial" name="Valider DG"></transition>
   </task-node>

   <task-node name="Commercial" >
   <task name="wf:Commercial_Tache" swimlane="initiator" />
      <transition to="RS" name="envoie doc">
      <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
      <script>
   var test = bpm_package;
   var doc = test.children[0];
   doc.addAspect("cm:versionable");
   doc.save();
      </script>
      </action>   
      
      <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
      <script>
               {
      var mail= actions.create("mail");
      mail.parameters.to=RS.properties.["cm:email"];
      mail.parameters.from=initiator.properties.["cm:email"];
      mail.parameters.subject="Validation Doc : Pour action";
      mail.parameters.text= "Veuiller valider le document" ;
       }
      </script>
      </action>
      
      
      </transition>
      <transition to="end-state1" name="Imprimer">
      <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
      <script>
               {
      var mail= actions.create("mail");
      mail.parameters.to=RS.properties.["cm:email"];
      mail.parameters.to=RO.properties.["cm:email"];
      mail.parameters.to=DG.properties.["cm:email"];
      mail.parameters.from=initiator.properties.["cm:email"];
      mail.parameters.subject="Validation Doc : Pour action";
      mail.parameters.text= "le document est prs pour impression" ;
       }
      </script>
      </action>
      
      </transition>
   </task-node>


   <end-state name="end-state1"></end-state>


</process-definition>


et mon modele de workflow :

<?xml version="1.0" encoding="utf-8" ?>
<model name="wf:workflowmodel"
xmlns="http://www.alfresco.org/model/dictionary/1.0">
   <description>Validation Workflow</description>
   <author>Jack</author>
   <version>1.0</version>
   
<imports>
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d" />
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
<import uri="http://www.alfresco.org/model/bpm/1.0" prefix="bpm" />
</imports>



<namespaces>
<namespace uri="http://www.alfresco.org/model/workflow/1.0" prefix="wf"/>
</namespaces>
<types>
<type name="wf:Submit">
<parent>bpm:startTask</parent>
<properties>
   <property name="bpm:description">
      <type>d:text</type>
   </property>
</properties>
</type>
<type name="wf:Commercial_Tache">
<parent>bpm:workflowTask</parent>
<overrides>

</overrides>
</type>
<type name="wf:RO_Tache">
<parent>bpm:workflowTask</parent>

</type>
<type name="wf:RS_Tache">
<parent>bpm:workflowTask</parent>


</type>
<type name="wf:DG_Tache">
<parent>bpm:workflowTask</parent></type>


</types>
</model>

pouvez vous m'indiquer oû est mon problème ?
merci
3 Replies
slipknotik
Active Member

Re: probème au niveau d'une transaction

apparament l'erreur est au niveau des scripts mais j'ai pas compris ce message :

Caused by: org.jbpm.graph.def.DelegationException: Failed to execute supplied script: il manque un nom aprs un oprateur '.' (AlfrescoScript#1)

et en plus j'ai examiner tout les scripts et ils me semblent valides.
tout aide est le bienvenu
jayjayecl
Active Member II

Re: probème au niveau d'une transaction

pas de "." apres "properties dans

 mail.parameters.to=RS.properties.["cm:email"];
      mail.parameters.from=initiator.properties.["cm:email"];
slipknotik
Active Member

Re: probème au niveau d'une transaction

merci infiniment pour ton aide, j'ai passé longtemps à tester et à relire le code et je n'ai jamais aperçu cette erreur.