cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow liefert Fehlermeldung

webraccoon
Champ in-the-making
Champ in-the-making
Hallo schon wieder,

diesmal sind Workflows an der Reihe:

Ich möchte eingentlcih nur einen einfachen Workflow anstosse, der eine E-Mail sendet.
Dafür habe ich mir Beispiele aus existierenden Workflows zusammengestellt:

hier ist der Kern meines Workflows:

<start-state name="start">
   <task name="scwf:submitHelloAndyTask" />
   <transition name="" to="hello"></transition>
</start-state>
   
<node name="hello">
   <transition name="" to="end1">
      <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">   
         <script>
            <expression>
               var timestamp = new Date().getTime();
               var mail = actions.create("mail");
               mail.parameters.to = "mail@domain.com";
               mail.parameters.subject = "Approval Request ";
               mail.parameters.text = "Hi,this is the timestamp "+timestamp;
               mail.execute(bpm_package.children[0]);
            </expression>
         </script>
      </action>
   </transition>
</node>

es endet in der Konsole stets mit dem Fehler:

Caused by: org.alfresco.error.AlfrescoRuntimeException: 02030000 ReferenceError: "bpm_package" is not defined. (AlfrescoJS#1)

Was mache ich denn falsch? Muss ich diese Variable noch irgendwo definieren?

Danke
webraccoon
2 REPLIES 2

jpfi_4454
Champ in-the-making
Champ in-the-making
hi,
versuch mal
<variable name="bpm_package" access="read"/>
vor deinem expressen element.
VG, jan

webraccoon
Champ in-the-making
Champ in-the-making
Hallo Jan,

das hat funktioniert.
Vielen Dank.

webraccoon
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.