cancel
Showing results for 
Search instead for 
Did you mean: 

Inject RuntimeService in the task

bhchemss
Star Contributor
Star Contributor

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 4

cjose
Elite Collaborator
Elite Collaborator

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
Star Contributor
Star Contributor

Hey Ciju,

Yes its working for FormService, not for RuntimeService Smiley Sad

cjose
Elite Collaborator
Elite Collaborator

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

bhchemss
Star Contributor
Star Contributor

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