cancel
Showing results for 
Search instead for 
Did you mean: 

Are the input contexts of workflow nodes the same as the document context?

kennyr_
Champ on-the-rise
Champ on-the-rise

Hi again,

I've been working on a custom operation. Outside of a workflow, it works great. I attached to a button in the context tools, and it ran. Inside of the workflow, when attached to a form button or to the output operation of a node, Nuxeo throws an error. The display changes to "Page not Found" and I get [this (pastebin)][1] error.

I thought it was related to an error in my original operation, so, I wrote a simple operation "noop":

public class noop {
  public static final String ID = "noop";
  @Context
  protected OperationContext ctx;
  public DocumentModel run(DocumentModel input) throws ClientException  {
     return input;
  }
}

and recieved the same error. Do I need to do something differently? The bundles are in place, the operation was uploaded to Studio. I'm using Nuxeo 5.6 and Eclipse Juno. [1]: http://pastebin.com/V0nuxWzz

1 REPLY 1

Mariana_Cedica
Star Contributor
Star Contributor

Hi,

I will need the complete stacktrace to help you. By "attached to a form button" you mean the chain bounded to a workflow transition? What is the first operation of your chain? Note that in the chains called from the workflow ( as input, output or chains related to transitions) you don't have to use FetchContextDocuments operation. The documents following the workflow are automatically set as input for these chains when they are invoked by the workflow engine.

Getting started

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.