cancel
Showing results for 
Search instead for 
Did you mean: 
bo55vxr
Nintex Newbie

Workflow "Log to History" in a Component Workflow

Sorry for the newbie question but I've search and not come up with the answer yet...

 

I have a workflows on several document libraries each which calls into a couple of Component Workflows as these have generic actions across the multiple doc libs.

 

The component workflows have "Log to History" actions on them but they are not getting attached to the workflow history of document that initiated to list workflow.

 

So, is there any way to get any "Log to History" actions in a Component Workflow to be recorded against the List item's workflow history?

 

Thanks.

Labels: (1)
0 Kudos
Reply
4 Replies
Nintex Employee
Nintex Employee

Re: Workflow "Log to History" in a Component Workflow

Hi,

 

Create Variables in your component workflow to store the information that you want to add to the History List of the item.  Configure it as an OutPut.

InfoOut.png

Have your componet Workflow populate this variable.

When you run the Component workflow configure the output with a variable to capture the output of the variable from the component workflow.

RunComponent.png

Now just Log this Variable to the History List of your item.

Hope that makes sense.

0 Kudos
Reply
bo55vxr
Nintex Newbie

Re: Workflow "Log to History" in a Component Workflow

Technically, tha would work, but there's a few "wait states" in the component flow and I want to log metrics and key points as things happen, so this approach would not work.

 

Good suggestion though.


@SimonMuntz wrote:

Hi,

 

Create Variables in your component workflow to store the information that you want to add to the History List of the item.  Configure it as an OutPut.

InfoOut.png

Have your componet Workflow populate this variable.

When you run the Component workflow configure the output with a variable to capture the output of the variable from the component workflow.

RunComponent.png

Now just Log this Variable to the History List of your item.

Hope that makes sense.


 

0 Kudos
Reply
Nintex Employee
Nintex Employee

Re: Workflow "Log to History" in a Component Workflow

Hey,

 

It's not super intuitive unfortunately, but as Component Workflows are isolated workflow instances, the log to history details are actually attached to the component workflow instance. If you go to the site your component workflow is published to and check the 'Site Workflow' instances (may need to click the 'Show all workflows' as the default view shows only your own) - you should see the component workflow instances and they should have all their own logs etc. attached there.

 

Let me know if this helps


Callum

0 Kudos
Reply
Lewis-H
Nintex Newbie

Re: Workflow "Log to History" in a Component Workflow

There are two ways to access the menu of available workflow actions.

While you are editing inside a workflow step, do one of the following:

  • On the Workflow tab, in the Insert group, click Actions.

  • Double-click inside the workflow step. In the search box that appears, type text that appears in the name of the action that you want (such as "add"), and then press Enter. Actions and conditions that contain the text that you typed appear below the text box.

I hope this helps!

Regards,

Lewis

0 Kudos
Reply