Skip to main content



      Home
Home » Eclipse Projects » BPMN 2.0 Modeler » Custom Task and Append button
Custom Task and Append button [message #1310797] Wed, 23 April 2014 08:01 Go to next message
Eclipse UserFriend
Hi,

I have created a custom task to define a "None End Event". My class extends CustomShapeFeatureContainer and I override getCreateFeature.

    @Override
    public ICreateFeature getCreateFeature(final IFeatureProvider fp1)
    {
        return new CreateCustomShapeFeature(fp1)
        {
            @Override
            public String getCreateDescription()
            {
                return "Create a None End Event";
            }          
            
        };
    }


My problem is : when the cursor is on the Custom task , I can see "Append Event", "Append Gateway","Append Activity" buttons. My custom Task define an end event, so I don't need these buttons. How can I remove these buttons ?

Thanks for your help.

Regards,

Damien
Re: Custom Task and Append button [message #1310873 is a reply to message #1310797] Wed, 23 April 2014 09:00 Go to previous messageGo to next message
Eclipse UserFriend
Hi Damien,

You need to override getCustomFeatures(IFeatureProvider) in your CustomShapeFeatureContainer and either call the superclass and cull out the Features you don't want, or simply return an empty array.

HTH,
Bob
Re: Custom Task and Append button [message #1311037 is a reply to message #1310873] Wed, 23 April 2014 11:03 Go to previous messageGo to next message
Eclipse UserFriend
Hi Bob

I did it but it doesn't work.

    @Override
    public ICustomFeature[] getCustomFeatures(IFeatureProvider fp) 
    {
        ICustomFeature[] customFeature= new ICustomFeature[0];
        return customFeature;
    }


I have several Custom task (several defines end event none, others defines start event none).
I see it is BPMNFeatureProvider class which call getCustomFeatures for each custom task. If i have several Custom task, BPMNFeatureProvider .getCustomFeatures will return all custom features for all custom task, i am wrong ?

Regards

Damien
Re: Custom Task and Append button [message #1311581 is a reply to message #1311037] Wed, 23 April 2014 18:07 Go to previous message
Eclipse UserFriend
Yes, you are absolutely correct - this is a BUG!
Please file a bug report and I'll fix this ASAP.

Thanks!
Bob
Previous Topic:Support of XMI or other formats in Import
Next Topic:Impossible to create a SequenceFlow if the target is a Catch Event
Goto Forum:
  


Current Time: Wed Jul 23 06:17:25 EDT 2025

Powered by FUDForum. Page generated in 0.08491 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top