ewoksppf.bindings.ConditionalActor#
- class ewoksppf.bindings.ConditionalActor(conditions, all_conditions, conditions_else_value, is_ppfmethod=False, **kw)[source]#
Bases:
AbstractActorTriggers downstream actors when conditions are fulfilled.
- Parameters:
conditions (
dict)all_conditions (
dict)is_ppfmethod (
bool)
- connect(actor)#
- getActorPath()#
- hasFinished()#
- hasStarted()#
- property pool_resources: int#
- setFinished()#
- setMongoAttribute(attribute, value)#
- setStarted()#
- trigger(inData, **kwargs)#
This method
starts a scheduler thread (increments the thread counter),
calls
ActorInterface._execute(actor-specific logic + triggering downstream actors),ends the scheduler thread (decrements the thread counter).
When
ActorInterface._executeis asynchronous, the scheduler thread needs to be deferred and executed as a callback once the asynchronous job completes.- Parameters:
inData (
dict)
- uploadInDataToMongo(actorData=None, script=None)#
- uploadOutDataToMongo(actorData=None)#