[MGNLWORKFLOW-312] Wiki Tutorial about creating workflows is incomplete/ misleading Created: 12/Nov/15  Updated: 14/Apr/16  Resolved: 14/Apr/16

Status: Closed
Project: Magnolia Workflow Module
Component/s: None
Affects Version/s: 5.5.1
Fix Version/s: None

Type: Task Priority: Neutral
Reporter: Jakub Romaniszyn Assignee: Richard Gange
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 0.25d
Original Estimate: Not Specified
Environment:

Magnolia 5.4.3
Eclipse Mars Release (4.5.0) , tested with Luna as well
BPMN2 Modeler - Diagram Editor (1.2.1.201510310115)


Attachments: Java Source File EmailWorkItemHandler.java     File ReviewForPublicationWithEmail.bpmn2    
Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Date of First Response:

 Description   

Hello,
There are some crucial info missing or not working as intended in Wiki tutorial , when we would like to create custom magnolia workflows

  1. Update the email workitem handler implementation
    When executing this workItem it's not finished. Next bpmn step is never executed unless following java code is added :
    final Map<String, Object> parameters = (Map<String, Object>) workItem.getParameter(WorkflowConstants.VARIABLE_DATA);
    manager.completeWorkItem(workItem.getId(), parameters);
  2. Process parameters
    Creating output mapping of mgnlData, but not storing anything into it, will result null map. If we would like to send e-mail and then launch ReviewForPublication workflow , it will recieve empty mgnlData map.
    Enclosed workflow and handler which were working

Best Regards
Jakub Romaniszyn



 Comments   
Comment by Richard Gange [ 30/Jan/16 ]

Hi Jakub Romaniszyn-

When I wrote that tutorial Magnolia 5.4 did not exist yet. I have verified that the instructions do work in Magnolia 5.3. You may have to make some changes to make it work in Magnolia 5.4.

Cheers
Rich

Comment by Jakub Romaniszyn [ 31/Jan/16 ]

Hello Rich.
As stated in my ticket , I already resolved issue with magnolia 5.4 by those 2 simple steps ( enclosed java and bmp corrected files to ticket).
Adding this small fix instead of depreciating documentation would be a way to go, but I imagine there are more important things that updating customer documentation
Anyway thank you for answering.

Best Regards
Jakub

Comment by Richard Gange [ 31/Jan/16 ]

Hi khobar-

Yes, it's a matter of time, sorry. In fact, that tutorial was written in my personal time. Please feel free to duplicate the page and create your own version. It's not official documentation. It's the community wiki. It did help you will the steps for creating a custom workflow so in that sense it's still relevant.

Kind Regards
Rich

Comment by Richard Gange [ 14/Apr/16 ]

I have recently found some time to update the tutorials. They cover both Magnolia 5.3 and Magnolia 5.4 custom workflows.

Generated at Mon Feb 12 10:08:51 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.