10-27-2008 05:15 PM
<type name="custom:proforma">
<title>Proforma</title>
<parent>cm:content</parent></type>
for (var i = 0; i < bpm_package.children.length; i++)
{
if (bpm_package.children[i].hasAspect("custom:proforma"))
{
var document= bpm_package.children[i];
var workflow = actions.create("start-workflow");
workflow.parameters.workflowName = "jbpm$Process3";
workflow.parameters["bpm:groupAssignee"] ="Adquisiciones";
workflow.parameters["bpm:workflowDescription"] =bpm_package.children[i].name;
workflow.execute(document);
}
}
El problema es que no me reconoce el bpm_package.children.hasAspect("custom10-27-2008 05:37 PM
if (bpm_package.children[i].type == "{Namespace de custom}proforma")
No sé cual es el FQN (fully qualified qname) de tu tipo, pues es el namspace junto con el nombre del tipo (y solo muestras en el ejemplo el prefijo junto con el nombre del tipo). Si el namespace fuera "http://www.alfresco.org/model/content/1.0" el fqn sería: {http://www.alfresco.org/model/content/1.0}proforma.10-29-2008 11:24 AM
for (var i = 0; i < bpm_package.children.length; i++)
{
if (bpm_package.children[i].type == "{custom.model}proforma")
{
ddd = ddd+1;
}
}
Tags
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.