liam_davison
I'm new here

How to debug scripts used in workflows?

Jump to solution

Good morning,

Our Release workflow stopped working recently, and I am trying to understand why. Our workflow relies on a Beanshell script to determine what should be released and how dependencies are calculated.

The workflow gets "stuck" after the Page, PageFolder and SiteFolder is released, but the PageRef is not released.

I need to debug this - how can I debug a workflow script?

context.LogError(message); - messages do not appear in ServerMonitor/Logfiles

I've also tried to use a popup dialog, but this always seems to stop the workflow completely:

reqOp = context.requireSpecialist(OperationAgent.TYPE).getOperation(RequestOperation.TYPE);

reqOp.setKind(RequestOperation.Kind.ERROR);

reqOp.perform(message);

The SiteArchitect "Template debugger" only works with Templates, and not scripts.

Many thanks,

Liam Davison

Labels (1)
Tags (3)
0 Kudos
1 Solution

Accepted Solutions
MichaelaReydt
Community Manager
Community Manager

Re: How to debug scripts used in workflows?

Jump to solution

Hello Liam,

do you need further help or did Ralph's reply already help you?

If you meanwhile have found a solution by yourself it would be great if you posted it here.

Best regards

Michaela

View solution in original post

0 Kudos
2 Replies
rkurz
Elite Observer

Re: How to debug scripts used in workflows?

Jump to solution

Hi Liam,

we have a same problem...but what we know so far is, that the log statements from workflow scripts, that run on the SiteArchitect, show up in the java console (you have to set this up in your java systemsettings).

We haven't found out, where the logs from the ContentCreator appear, yet...

We also used the popup-idea. It works pretty weill, If you open the popup as RequestOperation.Kind.INFO. Rhe workflow shouldn't break at this point.

I hope this helps you a bit.

Regards

Ralph

MichaelaReydt
Community Manager
Community Manager

Re: How to debug scripts used in workflows?

Jump to solution

Hello Liam,

do you need further help or did Ralph's reply already help you?

If you meanwhile have found a solution by yourself it would be great if you posted it here.

Best regards

Michaela

0 Kudos