cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a custom typed node

xtine
Champ in-the-making
Champ in-the-making
We are using Alfresco with a Drupal web site using the CMIS API. We use Alfresco workflows to process content from the web site. We do have some issues. One question is not CMIS related, but rather web script related: how do we create a custom typed node with NodeAPI createNode(), in the process definition of a workflow? Do we need to use a specific predefined namespace prefix?
2 REPLIES 2

iblanco
Confirmed Champ
Confirmed Champ
I don't understand the question I think.
createNode has a signature that allows specifying the type as the second parameter. So in the script you exect from the workflow you can just use it. isn't it?

rob_vandenbogaa
Champ in-the-making
Champ in-the-making
I'm a colleague of Christine and also working on the workflows. Turns out we might have overlooked something, because in trying to reproduce and better document the error it suddenly worked. I expected to have to prefix the namespace (e.g. with 'D') and remember also testing without it, but that seems not the case: it works if I specify the type as is, like "myprefix:mytype". Thanks for the reply!