4 Replies Latest reply on Mar 6, 2007 6:12 PM by Julian Klein

    jBPM Process Image Quirks

    Julian Klein Newbie

      Hi,

      I am using jBPM 3.0.x and the process image tag doesn't seem to position the table with the red border properly over the current node. It appears to work on certain nodes, but not others. I have tried to recreate the process image, but that makes no difference. The value in GPD.xml can't be altered b/c it adversely affects the ability to edit the process in the GPD. The values that are printing into the HTML are similar to the ones in GPD.xml, but the overlay doesn't line up (similar meaning the values are close, but have some differences due to border calculations in the tag's java file). Is it possible that the x,y,height, and width coordinates in gpd.xml don't correlate to a web browser with 100% fidelity? I am trying this on IE7 and have seen it in IE6. Also, I have taken the HTML output from the ProcessImagTag.java in a standalone HTML file (no other tags in the body) and it still doesn't line up. Any suggestions are appreciated.

      Thanks,
      Julian

        • 1. Re: jBPM Process Image Quirks
          Julian Klein Newbie

          sorry forgot to mention that the red box y-axis value is too small. The first column in the table doesn't have the appropriate height. The value is calculated with the code " (boxConstraint[0] - borderWidth)" and I see nothing wrong with this. I guess it comes down to whether or not these value map to a browser properly or if there is some quirk I may be missing...thanks again.

          • 2. Re: jBPM Process Image Quirks
            Koen Aers Master

            Julian,

            There is a bug in the GPD which I think produces the behaviour you see. If you leave the node at it's place where you dropped it, you will see the mentioned behaviour that the overlay of the red rectangle is not good. If you move the node after dropping it, the overlay should appear ok.

            Regards,
            Koen

            • 3. Re: jBPM Process Image Quirks
              Julian Klein Newbie

              Koen,

              Thanks for the reply, unfortunately this does not seem to be the case as I moved all the nodes around in the GPD and the box still doesn't line up. The y coords are just to small (aka the red box is closer to the top of the screen). It seems the x, width, and height coords are ok. Any other suggestions?

              Thanks,
              Julian

              • 4. Re: jBPM Process Image Quirks
                Julian Klein Newbie

                Ok, well I was looking at the GPD.xml and saw a few values that had negative integers set as the y values. I then went into the designer, highlighted all the elements on the screen, and drag them downwards (towards the bottom of the screen). I then delete the gpd.xml and then saved the process definition. The gpd.xml got regenerated and the negative values disappeared. I redeployed, and voila! it worked. Thanks for the insight.