08-03-2010 10:12 AM
08-03-2010 10:55 AM
<type name="wf:start">
<title>Start Node</title>
<parent>bpm:workflowTask</parent>
<overrides>
<property name="bpm:packageItemActionGroup">
<default>edit_package_item_actions</default>
</property>
</overrides>
</type>
08-03-2010 11:10 AM
Dans votre workflow model :
Code: Tout sélectionner
<type name="wf:start">
<title>Start Node</title>
<parent>bpm:workflowTask</parent>
<overrides>
<property name="bpmackageItemActionGroup">
<default>edit_package_item_actions</default>
</property>
</overrides>
</type>
08-04-2010 03:57 AM
// Création d'un nouveau noeud.
ChildAssociationRef association = service.createNode(
contextNode,
ContentModel.ASSOC_CONTAINS,
QName.createQName(ContentModel.TYPE_CONTENT, "nom du fichier"),
ContentModel.TYPE_CONTENT, contentProps);
// Référence du noeud nouvellement créé.
NodeRef content = association.getChildRef();
// Ajout du fichier dans le noeud.
ContentService contentService = serviceRegistry.getContentService();
ContentWriter writer = contentService.getWriter(content, ContentModel.PROP_CONTENT, true);
writer.putContent(file);
public class TaClasseAction implements ActionHandler
08-04-2010 10:48 AM
public void removePackageItem(ActionEvent event)
{
UIActionLink link = (UIActionLink) event.getComponent();
Map<String, String> params = link.getParameterMap();
String nodeRef = new NodeRef(Repository.getStoreRef(), params.get("id")).toString();
if (this.packageItemsToAdd != null && this.packageItemsToAdd.contains(nodeRef))
{
// remove the item from the added list if it was added in this
// dialog session
this.packageItemsToAdd.remove(nodeRef);
if (LOGGER.isDebugEnabled())
LOGGER.debug("Removed item from the added list: " + nodeRef);
}
else
{
// add the node to the list of items to remove
if (this.packageItemsToRemove == null)
{
this.packageItemsToRemove = new ArrayList<String>(1);
}
this.packageItemsToRemove.add(nodeRef);
if (LOGGER.isDebugEnabled())
LOGGER.debug("Added item to the removed list: " + nodeRef);
}
// reset the rich list so it re-renders
this.packageItemsRichList.setValue(null);
}
08-06-2010 03:57 AM
ManageTaskFolder manageTaskFolder = (ManageTaskFolder ) FacesHelper.getManagedBean(FacesContext.getCurrentInstance(), "ManageTaskFolder ");
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.