Inject RuntimeService in the task

cancel
Showing results for 
Search instead for 
Did you mean: 
bhchemss
Established Member

Inject RuntimeService in the task

Hi everyone ,

Is it possible to inject the RuntimeService in the document body of a form so we are able to use its methods ?

Like for the FormService ?

I tested like the FormService injection but it dosen't work (in javascript tab in the form)

 var formService = angular.element(document.body).injector().get('FormService')



Cheers

Chemss

4 Replies
cjose
Senior Member II

Re: Inject RuntimeService in the task

It should have worked, I remember trying it a few months ago ( ). Not sure if something has changed..do you have an example app which is not working?

bhchemss
Established Member

Re: Inject RuntimeService in the task

Hey Ciju,

Yes its working for FormService, not for RuntimeService Smiley Sad

cjose
Senior Member II

Re: Inject RuntimeService in the task

I'm not aware of a RuntimeService in the angular webapp!

bhchemss
Established Member

Re: Inject RuntimeService in the task

I tried to list all services existing in the angular app

Services available are :

ProcessService

TaskService

FormService

FilterService

CommentService

NavigationService

AuthenticationSharedService

UserService

FunctionalGroupService

RelatedContentService

ContentAccountService

RuntimeAppDefinitionService

ReportService

Utils