AnsweredAssumed Answered

Cascade of INBOUND Rules are not working

Question asked by sbroussi on May 31, 2006
Latest reply on May 31, 2006 by kevinr

I want to cascade some INBOUND Rule:
- folder A (drop zone)
  rule R1: import all incoming ACP files in folder B

- folder B (incoming files)
  rule R2: set a custom property to "new document"

1) Using FTP, I post one ACP file in folder A.
2) The rule 1 is well played, the ACP is imported
    in the folder B
3) problem starts here…: The rule R2 see new
    incoming files, but the Javascript crashes
    on the line "" (see below) with a:
4) After this crash, the database is corrupted (mySql, innoDB seems to be here but the transaction is not rollbacked).

Note that using the Web Client, I can play this script on a document
(Run action / execute a script). There is no error.

The script looks like:
if (document != null)
   // add the "myAspect" aspect and set the "stampStatus" to: "ToBeStamped"
   if (document.hasAspect("corp:myAspect"))
   {["corp:stampStatus"] = "ToBeStamped";
      var props = new Array(1);
      props["corp:stampStatus"] = "ToBeStamped";
      document.addAspect("corp:myAspect", props);