cancel
Showing results for 
Search instead for 
Did you mean: 

Javascript methods and SOAP

carlos_de_haro
Champ in-the-making
Champ in-the-making
I'd like to know if it's possible to insert pure javascript into a workflow like this:
<task-node name="revisa">   
  <task name="wf:revisaTask" swimlane="assignee">
    <event type="task-create">
      <script>
        alert("I like javascript");
      </script>
    </event>  
  </task>
  <transition name="revisado" to="firma" />
</task-node>
At the above code the "alert" function crashes. Is there any way to do something like that?

I'd also like to be able to use the javascript's soap actions to communicate with webservices, is that possible?
1 REPLY 1

kevinr
Star Contributor
Star Contributor
I'm not sure what you mean by "pure" javascript - since the alert() function is specific to the window javascript object provided by web-browser implementations. It certainly is not part of the "pure" ECMAScript 1.5 which our JavaScript engine is using: http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference

I think you are confused between browser compatible javascript and "pure" ECMAScript…

Thanks,

Kevin