I am new to workflow-ng but after having experienced a bit with it I think that this is a great module. I came across a problem and hope that someone will be able to help me.

I used the add new content action to crate a node on a custom event (provided by my auxiliary module) and now I would like add another action to the same event that would assign a taxonomy term to the newly created node. What would be the best way to do that?

I can implement a new action in my auxiliary module with two entities ($node and $term) but I do not know how to pass the node that has just been created into that action.

The second approach that I thought about, would be to use the content has been created event and add conditions so that my action would work only for the nodes that I want.

One more question:

In one of the workflow-ng files I can see such a definition of action:

    'workflow_ng_action_add_node' => array(
     '#label' => t('Add new content'),
     '#arguments' => array(
       'author' => array('#entity' => 'user', '#label' => t('User, which is set as author of the content')),
      ),
     '#new arguments' => array(
       'node_added' => array('#entity' => 'node', '#label' => t('Added content')),
      ),
      '#module' => 'Node',
    ),

What is the #new arguments array? I might be totally wrong but I suspected that I could make use of this argument in my subsequent action.

I would appreciate any suggestions.

Thanks,

Marcin