Friday, July 29, 2011

Update Task variables from Alfresco Javascript API

Hi. Alfresco has it's own javascript API for workflow. U can read abaut this from alfresco wiki:
1. Alfresco Javascript API
2. Workflow Administration

U can read and write task variables in JBPM. The Alfresco JavaScript action lets you embed custom JavaScript into process definitions in much the same way that you can embed BeanShell scripts. To do so, simply add an <action> element with class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript" attribute. Inside the <action> element, include a <script> element that defines the JavaScript to execute. As with the BeanShell script definitions, this <script> element may optionally contain <variable> elements
and an <expression> element if you want to limit access to process and task variables.

Wednesday, July 27, 2011

Add Syntax Highlighter for Blogger

Syntax Highlighter are generally used for blogs, which mainly focus on scripting tutorials. We could have seen in many popular blogs using script highlighter to highlight the script. It not only highlight the 
script, but also give us a clear idea, how the script was formulated. This javascript can be capable of displaying css, xml, jscript, python, c# and much more supported programing languages.


Before you could start registration JS for your blog, I recommend you to back up your template.

Saturday, July 23, 2011

Errors and SOLUTIONs for Alfresco installation

Hi.
      Alfresco uses log4j for logging. When u install and use Alfresco u can see errors, warn, debug and etc. in alfresco.log file.

In Linux u can follow errors as: tail -f /opt/usr/local/apache/tomcat/logs/catalina.out
In Windows u can do this by any log tail programs. Personally I am using WinTail :)

U can configure your logging settings in file log4j.properties in directory  <tomcat_webapps_dir>/alfresco/WEB-INF/classes

Thursday, July 14, 2011

JBPM Swimlane for Alfresco

Often, a process has the notion of a role in which multiple tasks during the process get assigned to the same  actor playing that role. For example, suppose you are defining a process that contains multiple tasks performed by "marketing". Rather than assign the marketing group or individual repeatedly to each task, it would be nice if you could make the assignment once, and then tell the other tasks to use the same assignment. In jBPM this is implemented through swimlanes. An actor can be assigned to a swimlane, and then all tasks that need to be performed by the same actor refer to the swimlane.

Alfresco creates one swimlane for you automatically called "initiator". The initiator swimlane is a convenient way to assign tasks to whoever started the workflow.