This content has been marked as final.
Show 3 replies
-
1. Re: Determine whether current Activity is custom or not
kukeltje Jan 12, 2010 5:17 PM (in response to gubespam)1 of 1 people found this helpful -
2. Re: Determine whether current Activity is custom or not
gubespam Jan 13, 2010 3:24 PM (in response to kukeltje)Hmm, that's definitely not any cleaner than what I had, which is below.
{code}
ActivityBehaviour act = ((ExecutionImpl) execution).getActivity().getActivityBehaviour();
boolean isCustom = ( act instanceof UserCodeActivityBehaviour );{code}
-
3. Re: Determine whether current Activity is custom or not
kukeltje Jan 13, 2010 7:45 PM (in response to gubespam)I think cleaner ;-) , since it is generic and looks at the node type, not the implementing class.