Process Mapping Logo

Process Mapping - Forums

Sharing 19 years of knowledge and experience

 
Metastorm BPM forums
Sign up Latest Topics
 
 
 


Reply
  Author   Comment  
erik1983

New Member
Registered:
Posts: 6
Reply with quote  #1 
Hi Guys,

Might be a strange query, but I've been asked by our users if there is a way to alter the colour of the action buttons on a stage to a different colour if it has been actioned.

I.e. we have a few actions on stage that you may do several times such as add a note or send email, and they want a quick visual reference to remind them of which one's they've pressed already (I've already provided a tab with event table contents in it, but apparently that wasn't good enough).

Has anyone done anything like this, i was thinking using jquery might be the answer if i could figure out the the div ids of the actions?
0
BMellert

Guru
Registered:
Posts: 688
Reply with quote  #2 
Might hiding the action be acceptable, or do they need to be able to do any particular action again?  In a supported fashion, the action buttons can be shown / hidden easily based on a condition.  I don't think there is a way -- or if there is there isn't a supported way -- to color buttons differently from the others.  In either case, you'd have to have conditions to store what's been done (or not yet done, depending on the approach desired).
0
praxkan

Veteran
Registered:
Posts: 142
Reply with quote  #3 
I agree with BMellert - you'd probably end up needing to do a lot of unsupported jquery hacks to change button colors.
Also, these action buttons look like buttons - but in fact are list items that are transformed by jquery/telerik.
So most likely any color changes you'd need will be even harder to do in a non-hack fashion, unless you want 
them global.

Also, if I recall correctly the action buttons are a separate frame and the inner "form" itself is a separate iframe - so thats another thing to consider (aka, the form might behave differently on an action vs a stage wrt parent window).

From your usecase, it sounds like users have a set of "must do" tasks as part of their regular process, and need a visual indicator when that task is done the first time. This is quite common in a lot of processes, and historically we achieved this by using something visual on the form itself. Like a status field/image that changes from a "X" to a check-mark or something.
0
erik1983

New Member
Registered:
Posts: 6
Reply with quote  #4 
Hi Guys,

Thanks very much for the replies, apologies for the delay in getting back to you both.

Praxkan you've hit the nail on the head with the issue at hand, it's about marking the tasks as being done the first time, rather than it just being a mandatory action that is done once.

You're both quite right as well I want to try and avoid any global or unsupported changes to the system.

I'm wondering picking up on your status/image approach, would it be possible to rename the action itself do you think (I'm more thinking aloud as the idea's coming to me as I type), I'm thinking could I rename the action to itself but with a count perhaps in brackets on how many times it's been used/completed?


 
0
praxkan

Veteran
Registered:
Posts: 142
Reply with quote  #5 
I dont know of a supported way to dynamically set action caption... I found a thread from 2008 that said metastorm was going to add this lol, but apparently not. 

http://metastorm.processmapping.com.au/post?id=2639539&goto=nextoldest

There's probably client script ways of achieving that because they're still just html elements, but you run the risk of custom code.


0
praxkan

Veteran
Registered:
Posts: 142
Reply with quote  #6 
Also, check this - this is completely thinking out loud

http://communitycentral.metastorm.com/t5/Metastorm-BPM-Version-9/HTML-Tags-in-Form-Stage-Action-captions/m-p/280861#M3701

if metastorm allows html tags on action names, does it allow javascript on there? If yes - you maybe able to get the number on action caption like you wanted. worth a shot i suppose. And a metastorm employee confirmed html tag support as a "feature", so its fairly supported 
0
BMellert

Guru
Registered:
Posts: 688
Reply with quote  #7 

If you cannot change the caption dynamically -- which I doubt, at least not in a supported fashion -- you can try the following (though granted, there is development overhead):
Create two actions which basically do the same thing.  Which displays will be determined whether the condition (action taken previously) has been done.  Have different captions (and by design names) for the actions. Doing this will display the intended action.

Agreed the overhead is a pain, but it should work.  I do something similar for having the same action caption from a user's perspective (Submit to NMS) but each does certain things.  From the user perspective, they don't see a difference when each appropriate condition applies.

0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:


Create your own forum with Website Toolbox!