04-11-2012 05:13 AM
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<bean id="dao.workflowBootstrap" parent="workflowDeployer">
<property name="workflowDefinitions">
<list>
<!– Activiti –>
<props>
<prop key="engineId">activiti</prop>
<prop key="location">alfresco/extension/workflows/activiti/demDocDAO.bpmn20.xml</prop>
<prop key="mimetype">text/xml</prop>
<prop key="redeploy">false</prop>
</props>
<props>
<prop key="engineId">activiti</prop>
<prop key="location">alfresco/extension/workflows/activiti/demCCT.bpmn20.xml</prop>
<prop key="mimetype">text/xml</prop>
<prop key="redeploy">false</prop>
</props>
</list>
</property>
<property name="models">
<list>
<value>alfresco/extension/model/demDocDAOModel.xml</value>
<value>alfresco/extension/model/demCCTModel.xml</value>
</list>
</property>
<property name="labels">
<list>
<value>alfresco/extension/messages/demDocDAO-messages_fr</value>
<value>alfresco/extension/messages/demCCT-messages_fr</value>
</list>
</property>
</bean>
</beans>
J'ai remarqué quand je supprime le fichier context,les boutons s’affichent dans les workflows par défauts comme :activitiAdhoc et les autres mais le bouton disparaît dans mes workflows spécifiques.04-12-2012 04:18 AM
04-12-2012 07:05 AM
<alfresco-config>
<!– Repository Library config section –>
<config evaluator="string-compare" condition="RepositoryLibrary" replace="true">
<!–
Whether the link to the Repository Library appears in the header component or not.
–>
<visible>true</visible>
</config>
<!–workflow demande des cahiers des clauses techniques–>
<config evaluator="string-compare" condition="activiti$activitiDemCCT">
<forms>
<form>
<field-visibility>
<show id="bpm:workflowDescription"/>
<show id="bpm:workflowDueDate"/>
<show id="bpm:workflowPriority"/>
<show id="wf:projectName"/>
<show id="wf:marketName"/>
<show id="bpm:groupAssignee"/>
<show id="bpm:sendEMailNotifications"/>
</field-visibility>
<appearance>
<set id="" appearance="title" label-id="workflow.set.general"/>
<set id="info" appearance="" template="/org/alfresco/components/form/2-column-set.ftl"/>
<set id="assignee" appearance="title" label-id="workflow.set.assignee"/>
<set id="other" appearance="title" label-id="workflow.set.other"/>
<field id="bpm:workflowDescription" label-id="workflow.field.message">
<control template="/org/alfresco/components/form/controls/textarea.ftl">
<control-param name="style">width: 95%</control-param>
</control>
</field>
<field id="bpm:workflowDueDate" label-id="workflow.field.due" set="info"/>
<field id="bpm:workflowPriority" label-id="workflow.field.priority" set="info">
<control template="/org/alfresco/components/form/controls/workflow/priority.ftl"/>
</field>
<field id="wf:projectName" set="info">
<control template="/org/alfresco/components/form/controls/textfield.ftl"/>
</field>
<field id="wf:marketName" set="info">
<control template="/org/alfresco/components/form/controls/textfield.ftl"/>
</field>
<field id="bpm:groupAssignee" label-id="workflow.field.review_group" set="assignee"/>
<field id="bpm:sendEMailNotifications" set="other">
<control template="/org/alfresco/components/form/controls/workflow/email-notification.ftl"/>
</field>
</appearance>
</form>
</forms>
</config>
<config evaluator="task-type" condition="wf:submitGroupReviewTaskCCT">
<forms>
<form id="workflow-details">
<field-visibility>
<show id="bpm:groupAssignee"/>
<show id="bpm:sendEMailNotifications"/>
</field-visibility>
<appearance>
<set id="" appearance="title" label-id="workflow.set.workflow.more_info"/>
<set id="items" appearance="title" label-id="workflow.set.items"/>
<field id="bpm:groupAssignee" label-id="workflow.field.review_group"/>
</appearance>
</form>
<form>
<field-visibility>
<show id="message"/>
<show id="taskOwner"/>
<show id="bpm:workflowPriority"/>
<show id="bpm:workflowDueDate"/>
<show id="bpm:taskId"/>
<show id="bpm:status"/>
<show id="wf:projectName"/>
<show id="wf:marketName"/>
<show id="bpm:sendEMailNotifications"/>
</field-visibility>
<appearance>
<set id="" appearance="title" label-id="workflow.set.task.info"/>
<set id="info" appearance="" template="/org/alfresco/components/form/3-column-set.ftl"/>
<set id="progress" appearance="title" label-id="workflow.set.task.progress"/>
<set id="other" appearance="title" label-id="workflow.set.other"/>
<field id="message">
<control template="/org/alfresco/components/form/controls/info.ftl"/>
</field>
<field id="taskOwner" set="info"/>
<field id="bpm:taskId" set="info">
<control template="/org/alfresco/components/form/controls/info.ftl"/>
</field>
<field id="bpm:workflowPriority" label-id="workflow.field.priority" set="info" read-only="true">
<control template="/org/alfresco/components/form/controls/workflow/priority.ftl"/>
</field>
<field id="bpm:workflowDueDate" set="info" label-id="workflow.field.due">
<control template="/org/alfresco/components/form/controls/info.ftl"/>
</field>
<field id="bpm:status" set="progress"/>
<field id="wf:projectName" set="info">
<control template="/org/alfresco/components/form/controls/info.ftl"/>
</field>
<field id="wf:marketName" set="info">
<control template="/org/alfresco/components/form/controls/info.ftl"/>
</field>
<field id="bpm:sendEMailNotifications" set="other"/>
</appearance>
</form>
</forms>
</config>
<config evaluator="task-type" condition="wf:activitiReviewTaskCCT">
<forms>
<form>
<field-visibility>
<show id="message"/>
<show id="taskOwner"/>
<show id="bpm:priority"/>
<show id="bpm:dueDate"/>
<show id="bpm:taskId"/>
<show id="bpm:status"/>
<show id="wf:projectName"/>
<show id="wf:marketName"/>
<show id="bpm:comment"/>
<show id="wf:reviewOutcome"/>
</field-visibility>
<appearance>
<set id="" appearance="title" label-id="workflow.set.task.info"/>
<set id="info" appearance="" template="/org/alfresco/components/form/3-column-set.ftl"/>
<set id="progress" appearance="title" label-id="workflow.set.task.progress"/>
<set id="response" appearance="title" label-id="workflow.set.response"/>
<field id="message">
<control template="/org/alfresco/components/form/controls/info.ftl"/>
</field>
<field id="taskOwner" set="info"/>
<field id="bpm:taskId" set="info">
<control template="/org/alfresco/components/form/controls/info.ftl"/>
</field>
<field id="bpm:priority" set="info" read-only="true">
<control template="/org/alfresco/components/form/controls/workflow/priority.ftl"/>
</field>
<field id="bpm:dueDate" set="info" label-id="workflow.field.due">
<control template="/org/alfresco/components/form/controls/info.ftl"/>
</field>
<field id="wf:projectName" set="info">
<control template="/org/alfresco/components/form/controls/info.ftl"/>
</field>
<field id="wf:marketName" set="info">
<control template="/org/alfresco/components/form/controls/info.ftl"/>
</field>
<field id="bpm:status" set="progress"/>
<field id="bpm:comment" label-id="workflow.field.comment" set="response">
<control template="/org/alfresco/components/form/controls/textarea.ftl"/>
</field>
<field id="wf:reviewOutcome" label-id="workflow.field.outcome" set="response">
<control template="/org/alfresco/components/form/controls/workflow/activiti-transitions.ftl"/>
</field>
</appearance>
</form>
</forms>
</config>
<config evaluator="task-type" condition="wf:approvedParallelTaskCCT">
<forms>
<form>
<field-visibility>
<show id="message"/>
<show id="taskOwner"/>
<show id="bpm:priority"/>
<show id="bpm:dueDate"/>
<show id="bpm:taskId"/>
<show id="bpm:status"/>
<show id="bpm:comment"/>
<show id="transitions"/>
</field-visibility>
<appearance>
<set id="" appearance="title" label-id="workflow.set.task.info"/>
<set id="info" appearance="" template="/org/alfresco/components/form/3-column-set.ftl"/>
<set id="progress" appearance="title" label-id="workflow.set.task.progress"/>
<set id="response" appearance="title" label-id="workflow.set.response"/>
<field id="message">
<control template="/org/alfresco/components/form/controls/info.ftl"/>
</field>
<field id="taskOwner" set="info"/>
<field id="bpm:taskId" set="info">
<control template="/org/alfresco/components/form/controls/info.ftl"/>
</field>
<field id="bpm:priority" set="info" read-only="true">
<control template="/org/alfresco/components/form/controls/workflow/priority.ftl"/>
</field>
<field id="bpm:dueDate" set="info" label-id="workflow.field.due">
<control template="/org/alfresco/components/form/controls/info.ftl"/>
</field>
<field id="bpm:status" set="progress"/>
<field id="bpm:comment" label-id="workflow.field.comment" set="response">
<control template="/org/alfresco/components/form/controls/textarea.ftl"/>
</field>
<field id="transitions" set="response"/>
</appearance>
</form>
</forms>
</config>
<config evaluator="task-type" condition="wf:rejectedParallelTaskCCT">
<forms>
<form>
<field-visibility>
<show id="message"/>
<show id="taskOwner"/>
<show id="bpm:priority"/>
<show id="bpm:dueDate"/>
<show id="bpm:taskId"/>
<show id="bpm:status"/>
<show id="bpm:comment"/>
<show id="transitions"/>
</field-visibility>
<appearance>
<set id="" appearance="title" label-id="workflow.set.task.info"/>
<set id="info" appearance="" template="/org/alfresco/components/form/3-column-set.ftl"/>
<set id="progress" appearance="title" label-id="workflow.set.task.progress"/>
<set id="response" appearance="title" label-id="workflow.set.response"/>
<field id="message">
<control template="/org/alfresco/components/form/controls/info.ftl"/>
</field>
<field id="taskOwner" set="info"/>
<field id="bpm:taskId" set="info">
<control template="/org/alfresco/components/form/controls/info.ftl"/>
</field>
<field id="bpm:priority" set="info" read-only="true">
<control template="/org/alfresco/components/form/controls/workflow/priority.ftl"/>
</field>
<field id="bpm:dueDate" set="info" label-id="workflow.field.due">
<control template="/org/alfresco/components/form/controls/info.ftl"/>
</field>
<field id="bpm:status" set="progress"/>
<field id="packageItems" set="items"/>
<field id="bpm:comment" label-id="workflow.field.comment" set="response">
<control template="/org/alfresco/components/form/controls/textarea.ftl"/>
</field>
<field id="transitions" set="response"/>
</appearance>
</form>
</forms>
</config>
<!–workflow de demande de documents du DAO –>
<config evaluator="string-compare" condition="activiti$activitiDemDocDAO">
<forms>
<form>
<field-visibility>
<show id="bpm:workflowDescription"/>
<show id="bpm:workflowDueDate"/>
<show id="bpm:workflowPriority"/>
<show id="wf:projectName"/>
<show id="wf:marketName"/>
<show id="bpm:groupAssignee"/>
<show id="bpm:sendEMailNotifications"/>
</field-visibility>
<appearance>
<set id="" appearance="title" label-id="workflow.set.general"/>
<set id="info" appearance="" template="/org/alfresco/components/form/2-column-set.ftl"/>
<set id="assignee" appearance="title" label-id="workflow.set.assignee"/>
<set id="other" appearance="title" label-id="workflow.set.other"/>
<field id="bpm:workflowDescription" label-id="workflow.field.message">
<control template="/org/alfresco/components/form/controls/textarea.ftl">
<control-param name="style">width: 95%</control-param>
</control>
</field>
<field id="bpm:workflowDueDate" label-id="workflow.field.due" set="info"/>
<field id="bpm:workflowPriority" label-id="workflow.field.priority" set="info">
<control template="/org/alfresco/components/form/controls/workflow/priority.ftl"/>
</field>
<field id="wf:projectName" set="info">
<control template="/org/alfresco/components/form/controls/textfield.ftl"/>
</field>
<field id="wf:marketName" set="info">
<control template="/org/alfresco/components/form/controls/textfield.ftl"/>
</field>
<field id="bpm:groupAssignee" label-id="workflow.field.review_group" set="assignee"/>
<field id="bpm:sendEMailNotifications" set="other">
<control template="/org/alfresco/components/form/controls/workflow/email-notification.ftl"/>
</field>
</appearance>
</form>
</forms>
</config>
<config evaluator="task-type" condition="wf:submitGroupReviewTaskDOC">
<forms>
<form id="workflow-details">
<field-visibility>
<show id="bpm:groupAssignee"/>
<show id="bpm:sendEMailNotifications"/>
</field-visibility>
<appearance>
<set id="" appearance="title" label-id="workflow.set.workflow.more_info"/>
<set id="items" appearance="title" label-id="workflow.set.items"/>
<field id="bpm:groupAssignee" label-id="workflow.field.review_group"/>
</appearance>
</form>
<form>
<field-visibility>
<show id="message"/>
<show id="taskOwner"/>
<show id="bpm:workflowPriority"/>
<show id="bpm:workflowDueDate"/>
<show id="bpm:taskId"/>
<show id="bpm:status"/>
<show id="wf:projectName"/>
<show id="wf:marketName"/>
<show id="bpm:sendEMailNotifications"/>
</field-visibility>
<appearance>
<set id="" appearance="title" label-id="workflow.set.task.info"/>
<set id="info" appearance="" template="/org/alfresco/components/form/3-column-set.ftl"/>
<set id="progress" appearance="title" label-id="workflow.set.task.progress"/>
<set id="other" appearance="title" label-id="workflow.set.other"/>
<field id="message">
<control template="/org/alfresco/components/form/controls/info.ftl"/>
</field>
<field id="taskOwner" set="info"/>
<field id="bpm:taskId" set="info">
<control template="/org/alfresco/components/form/controls/info.ftl"/>
</field>
<field id="bpm:workflowPriority" label-id="workflow.field.priority" set="info" read-only="true">
<control template="/org/alfresco/components/form/controls/workflow/priority.ftl"/>
</field>
<field id="bpm:workflowDueDate" set="info" label-id="workflow.field.due">
<control template="/org/alfresco/components/form/controls/info.ftl"/>
</field>
<field id="bpm:status" set="progress"/>
<field id="wf:projectName" set="info">
<control template="/org/alfresco/components/form/controls/info.ftl"/>
</field>
<field id="wf:marketName" set="info">
<control template="/org/alfresco/components/form/controls/info.ftl"/>
</field>
<field id="bpm:sendEMailNotifications" set="other"/>
</appearance>
</form>
</forms>
</config>
<config evaluator="task-type" condition="wf:activitiReviewTaskDOC">
<forms>
<form>
<field-visibility>
<show id="message"/>
<show id="taskOwner"/>
<show id="bpm:priority"/>
<show id="bpm:dueDate"/>
<show id="bpm:taskId"/>
<show id="bpm:status"/>
<show id="wf:projectName"/>
<show id="wf:marketName"/>
<show id="bpm:comment"/>
<show id="wf:reviewOutcome"/>
</field-visibility>
<appearance>
<set id="" appearance="title" label-id="workflow.set.task.info"/>
<set id="info" appearance="" template="/org/alfresco/components/form/3-column-set.ftl"/>
<set id="progress" appearance="title" label-id="workflow.set.task.progress"/>
<set id="response" appearance="title" label-id="workflow.set.response"/>
<field id="message">
<control template="/org/alfresco/components/form/controls/info.ftl"/>
</field>
<field id="taskOwner" set="info"/>
<field id="bpm:taskId" set="info">
<control template="/org/alfresco/components/form/controls/info.ftl"/>
</field>
<field id="bpm:priority" set="info" read-only="true">
<control template="/org/alfresco/components/form/controls/workflow/priority.ftl"/>
</field>
<field id="bpm:dueDate" set="info" label-id="workflow.field.due">
<control template="/org/alfresco/components/form/controls/info.ftl"/>
</field>
<field id="wf:projectName" set="info">
<control template="/org/alfresco/components/form/controls/info.ftl"/>
</field>
<field id="wf:marketName" set="info">
<control template="/org/alfresco/components/form/controls/info.ftl"/>
</field>
<field id="bpm:status" set="progress"/>
<field id="bpm:comment" label-id="workflow.field.comment" set="response">
<control template="/org/alfresco/components/form/controls/textarea.ftl"/>
</field>
<field id="wf:reviewOutcome" label-id="workflow.field.outcome" set="response">
<control template="/org/alfresco/components/form/controls/workflow/activiti-transitions.ftl"/>
</field>
</appearance>
</form>
</forms>
</config>
<config evaluator="task-type" condition="wf:approvedParallelTaskDOC">
<forms>
<form>
<field-visibility>
<show id="message"/>
<show id="taskOwner"/>
<show id="bpm:priority"/>
<show id="bpm:dueDate"/>
<show id="bpm:taskId"/>
<show id="bpm:status"/>
<show id="bpm:comment"/>
<show id="transitions"/>
</field-visibility>
<appearance>
<set id="" appearance="title" label-id="workflow.set.task.info"/>
<set id="info" appearance="" template="/org/alfresco/components/form/3-column-set.ftl"/>
<set id="progress" appearance="title" label-id="workflow.set.task.progress"/>
<set id="response" appearance="title" label-id="workflow.set.response"/>
<field id="message">
<control template="/org/alfresco/components/form/controls/info.ftl"/>
</field>
<field id="taskOwner" set="info"/>
<field id="bpm:taskId" set="info">
<control template="/org/alfresco/components/form/controls/info.ftl"/>
</field>
<field id="bpm:priority" set="info" read-only="true">
<control template="/org/alfresco/components/form/controls/workflow/priority.ftl"/>
</field>
<field id="bpm:dueDate" set="info" label-id="workflow.field.due">
<control template="/org/alfresco/components/form/controls/info.ftl"/>
</field>
<field id="bpm:status" set="progress"/>
<field id="bpm:comment" label-id="workflow.field.comment" set="response">
<control template="/org/alfresco/components/form/controls/textarea.ftl"/>
</field>
<field id="transitions" set="response"/>
</appearance>
</form>
</forms>
</config>
<config evaluator="task-type" condition="wf:rejectedParallelTaskDOC">
<forms>
<form>
<field-visibility>
<show id="message"/>
<show id="taskOwner"/>
<show id="bpm:priority"/>
<show id="bpm:dueDate"/>
<show id="bpm:taskId"/>
<show id="bpm:status"/>
<show id="bpm:comment"/>
<show id="transitions"/>
</field-visibility>
<appearance>
<set id="" appearance="title" label-id="workflow.set.task.info"/>
<set id="info" appearance="" template="/org/alfresco/components/form/3-column-set.ftl"/>
<set id="progress" appearance="title" label-id="workflow.set.task.progress"/>
<set id="response" appearance="title" label-id="workflow.set.response"/>
<field id="message">
<control template="/org/alfresco/components/form/controls/info.ftl"/>
</field>
<field id="taskOwner" set="info"/>
<field id="bpm:taskId" set="info">
<control template="/org/alfresco/components/form/controls/info.ftl"/>
</field>
<field id="bpm:priority" set="info" read-only="true">
<control template="/org/alfresco/components/form/controls/workflow/priority.ftl"/>
</field>
<field id="bpm:dueDate" set="info" label-id="workflow.field.due">
<control template="/org/alfresco/components/form/controls/info.ftl"/>
</field>
<field id="bpm:status" set="progress"/>
<field id="packageItems" set="items"/>
<field id="bpm:comment" label-id="workflow.field.comment" set="response">
<control template="/org/alfresco/components/form/controls/textarea.ftl"/>
</field>
<field id="transitions" set="response"/>
</appearance>
</form>
</forms>
</config>
<config evaluator="string-compare" condition="Remote">
<remote>
<endpoint>
<id>alfresco-noauth</id>
<name>Alfresco - unauthenticated access</name>
<description>Access to Alfresco Repository WebScripts that do not require authentication</description>
<connector-id>alfresco</connector-id>
<endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
<identity>none</identity>
</endpoint>
<endpoint>
<id>alfresco</id>
<name>Alfresco - user access</name>
<description>Access to Alfresco Repository WebScripts that require user authentication</description>
<connector-id>alfresco</connector-id>
<endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
<identity>user</identity>
</endpoint>
<endpoint>
<id>alfresco-feed</id>
<name>Alfresco Feed</name>
<description>Alfresco Feed - supports basic HTTP authentication via the EndPointProxyServlet</description>
<connector-id>http</connector-id>
<endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
<basic-auth>true</basic-auth>
<identity>user</identity>
</endpoint>
</remote>
</config>
</alfresco-config>
Pour le fichier share-workflow-form-config.xml, je lui ai ajouté les même tâches et workflows se trouvant dans le fichier share-config-custom.xml.04-13-2012 07:32 AM
04-15-2012 09:52 AM
04-08-2013 02:23 AM
04-05-2013 05:50 AM
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.