last day (19 days later) » 

10:53 AM
3
A: Integrate applet on workflow Alfresco

Marco AltieriI do not have the details of your applet and so I cannot be sure that it is possible, but you can try to simply use some javascript to access public methods of your applet. The form-engine in Alfresco is easily customisable writing your custom controls. The custom control will generate the html...

 
I like the idea, I will work on it and see what I can do.
I update my question, i'm trying to change something, just to know how to begin to integrate applet in the the forms but nothing happens with the code changes... You know if it is the correct way or help me with the possible error in the code?
 
Where have you deployed your custom template?
 
I'm trying to change the original workflow only for testing. I already make a new workflow but, I'm testing if I can change the button "Accept" funcionallity. I have to make a new workflow mandatorilly to call a custom-acitiviti-transitions.ftl and this works?
I update the question with a link of my possible problem. And for that reason, maybe even I'll have to create changes in the new workflow.
 
You do not necessarily need a custom workflow if you are updating the alfresco template. Have you restarted alfresco or refreshed the share webscripts?
I will post more info later
 
Ok thanks. I already make changes on the original workflow edit-task page... My error was stupid. I'm trying now modify the button accept.
I tried modifying activiti-transitions.ftl and these changes take effect in alfresco. However when I make changes in the activiti-transitions.js do not show the changes. I tried to incorporate into ftl and still nothing. The code is in the question.
 
10:53 AM
If Alfresco is not running in debug mode, only the minimized versions of the javascript are read. Follow the configuration described in the following article to set Alfresco in debug mode: alfresco.com/blogs/kevinr/tag/javascript
 
The minimized version works :) Thanks so much! Now don't jump to the task done but I will see tomorrow. The part of the applet will see tomorrow too and I give news. Thank you in advance what already helped.
One question, before joining the new workflow, I modify the original just to see how it integrates. However, to create the html + javascript to the applet I have to use also activiti-transitions.ftl + activiti-transitions.js? The button does not have an appropriate form? I am confused.
 
11:12 AM
I think this is the last question to can make this... I edit my question with my new code! I made a new button to call the applet, but... I don't know how to send the information task done like the button accept, when the changes with the applet are completed.
 
 
4 hours later…
2:48 PM
Have you ever implemented a Behaviour ?
 
behaviour ?
 
A behaviour is a listener in Alfresco that can be called on a predefined event. For example when your document is updated by the applet. The behaviour can be implemented as a java class or as javascript. I think that it is better to use Java because the configuration for the javascript behaviour is more complicated.
In this behaviour you can use the Java API to modify the workflow. When a document is in a workflow, a relation exists on its node that points to a node. This node has the information about the task.
this is another chapter written by Jeff Potts that describes the use of Behaviours.
 
But where I create this ? I have a listener when I create a workflow, that calls a class java that makes a modification on the file. It's more or less equal to the applet? But I make this on the xml serialreview.xml like: <activiti:executionListener event="start" class="pt.fields.CreateFields"></activiti:executionListener>
 
This needs to be outside the workflow.
It is a java class and a spring bean configuration
 
Ok i'll read about behaviours. without read, I can not ask any more about integrations. :) Thank you so much! Another question only, to advance for this, I'm trying to start the applet on the page task-edit, only for testing, but I need the filename there, to GET the file. You know how can I access the file name ? I have the nodeRef in the URL, but I already try some things like: stackoverflow.com/questions/35133083/…, but i can't
get the file name
i think i'll go need this, in the future.
 
 
8 hours later…
10:45 PM
I already make this. Now Im studing the behaviours. Its complicated to understand how can I make this
 

  last day (19 days later) »