Alfresco share wizard
beCPG allows to create advanced wizard with alfresco share config. Wizard can then be used standalone or during a project task or a PLM action.
Add a new wizard (3.2.0)
To create a wizard you can add following configs under share-config-custom.xml
<code class="xml"><config evaluator="string-compare" condition="wizard">
<wizards>
<wizard id="sample-npd">
<step id="step1" label="Création demande" type="form" formId="create-article"
itemId="pjt:project" nextStepWebScript="becpg/project/entity?nodeRef={nodeRef}"></step>
<step id="step2" label="Information produits" type="form"
formId="create-article" itemId="bcpg:finishedProduct"></step>
<step id="step3" label="Composition produit" type="entityDataList"
listId="compoList" itemId="bcpg:compoList"></step>
<step id="step4" label="Emballages" type="entityDataList" listId="packagingList"
itemId="bcpg:packagingList"></step>
</wizard>
<wizards>
</config>
</code>
As you can notice:
- You can use several formId with or without existing nodes.
- You can call intermediate webscript with nextStepWebScript (the webscript should return a nodeRef to use it in the next step).
- You can display entity datalists
Then to call the wizard to create a new node:
/share/page/wizard?id=sample-npd&destination=
or to open an existing one:
/share/page/wizard?id=sample-npd&nodeRef={nodeRef}
Direct deployment (3.2.0)
Since the 3.2.0 version, it's possible de deploy the file becpg-config-custom.xml like a form with the same modality (same folder,...). However, the name must be becpg-config-custom.xml.