cancel
Showing results for 
Search instead for 
Did you mean: 

[SOLVED] Workflow without a document?!

decoy
Champ in-the-making
Champ in-the-making
Hi, I am a bit new with Alfresco and I have  a question about Alfresco workflows.
I managed to make advanced workflow using jBPM and i made a custom screen for every node of my workflow. That all works fine for me.
Now I would like to start a workflow without a document. What I mean is that a user clicks on a menu item which will say i.e. "Start a workflow" and then i would love to show some screen in which will user insert some additional information like:
- Type of document (predefined)
- Some custom aspects

After insert of this data I need that my workflow create a document (or more documents) and start the workflow for it.

Is it possible and how?! Please if someone have some suggestion let me know.

p.s. I've searched this forum for a while before posting this thread.


Thanks in advance
10 REPLIES 10

decoy
Champ in-the-making
Champ in-the-making
I found solution for my problem. The solution is in script bellow

     <script> 
                         var dest = companyhome.childByNamePath("User Homes");                
                  var file = dest.createFile("file_name.txt");
                  file.content="test content";
                  file.save();  
                  bpm_package.addNode(file);
            </script>