# Inherited methods aren't usable for task operation

**URL:** https://community.ofelia.com/t/inherited-methods-arent-usable-for-task-operation/5716
**Category:** Q&A
**Created:** [4 March 2015 09:14 UTC](https://community.ofelia.com/t/inherited-methods-arent-usable-for-task-operation/5716 "2015-03-04T09:14:28Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![lilian.gallet](https://avatars.discourse-cdn.com/v4/letter/l/0ea827/32.png) [@lilian.gallet](https://community.ofelia.com/u/lilian.gallet)
#### Post date: [4 March 2015 09:14 UTC](https://community.ofelia.com/t/inherited-methods-arent-usable-for-task-operation/5716/1 "2015-03-04T09:14:28Z")

</div>

Hello.

I have a class A that inherited from a class B. I have declared a instance of class A on the lane. In a task operation, I want to use public method declared on class B but the studio doesn’t show inherited methods.

In studio 6.2.6, I used groovy script as workaround. But, in studio 6.4.2, I have on error “dependency cannot be initialized or updated inside a groovy script expression. You have to use Operation”. Why this regression ? And why propose the operator “Takes value of” if it is forbidden ?

I’m blocked.

---

<div class="post-metadata">

### Author: ![Sean\_McP](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ofelia.com/sean_mcp/32/932_2.png) [@Sean\_McP](https://community.ofelia.com/u/Sean_McP)
#### Post date: [4 March 2015 15:53 UTC](https://community.ofelia.com/t/inherited-methods-arent-usable-for-task-operation/5716/2 "2015-03-04T15:53:15Z")

</div>

My guess this this is deliberate code-safety in programming.

I also had this problem recently, but I’ve also found that Operations in the end work much better than using a groovy script connector to do the work I wanted to do.

_Takes the Value of_ works just fine,

It took me a while to get the hang of it but I find it works.

regards  
Seán

---

<div class="post-metadata">

### Author: ![lilian.gallet](https://avatars.discourse-cdn.com/v4/letter/l/0ea827/32.png) [@lilian.gallet](https://community.ofelia.com/u/lilian.gallet)
#### Post date: [5 March 2015 10:47 UTC](https://community.ofelia.com/t/inherited-methods-arent-usable-for-task-operation/5716/3 "2015-03-05T10:47:02Z")

</div>

Despite the error message, “Takes value of” continues to work (how many time ?).

That does not explain why inherited methods aren’t shown (bug ?).
