Class: GinflowNotifierService

GinflowNotifierService

Service which will take care of changing css during the execution of the workflow.
Build also a GinflowResult which contains information about service execution.
i.e. Name, output, errors and exit code of the service.
GraphService is used because this class owns the core instance of Cytoscape (GraphService#cy).


new GinflowNotifierService(graph)

Constructor.
Injects an instance of GraphService.

Parameters:
Name Type Description
graph GraphService

An instance of GraphService

Source:
See:

Methods


getCurrentExecutedService(service)

Get the current executed service given the instance of Service.

Parameters:
Name Type Description
service any

The instance of service

Source:
Returns:

The executed service (unique)

Type
Cy.Collection

getCurrentExecutedServiceById(id)

Get the current executed service given its id.

Parameters:
Name Type Description
id string

The id of the executed service

Source:
Returns:

The executed service (unique)

Type
Cy.Collection

notifyServiceDeployed(service)

Update css style when the service is deployed.

Parameters:
Name Type Description
service any

The service to update

Source:

notifyServiceFailed(service)

Update css style when the service crash (interruption of the service).

Parameters:
Name Type Description
service any

The service to update

Source:

notifyServiceStarted(service)

Update css style when the execution of the service is starting.

Parameters:
Name Type Description
service any

The service to update

Source:

updateServiceStatus(service, workflowProgression)

Update status of service during the execution.
Update css style and retrieve the result of the execution.

Parameters:
Name Type Description
service any

The service to update

workflowProgression number

The current progression in percent of the workflow

Source:
Returns:

The new progression in percent of the workflow

Type
number