Constructs a TaskActionsContext

        :returns: twilio.rest.autopilot.v1.assistant.task.task_actions.TaskActionsContext
        :rtype: twilio.rest.autopilot.v1.assistant.task.task_actions.TaskActionsContext
761929
def get(self):
        
        return TaskActionsContext(
            self._version,
            assistant_sid=self._solution['assistant_sid'],
            task_sid=self._solution['task_sid'],
        )
891686
def emit_contextually(self, action, payload):
        
        self.dump(action, payload)
        return g.rio_client_contextual.append((action, payload, ))
342039
def get(self, sid):
        
        return ActivityContext(self._version, workspace_sid=self._solution['workspace_sid'], sid=sid, )
1252006
private void submit(final ActiveContext context) {
    try {
      LOG.log(Level.INFO, "Send task to context: {0}", new Object[]{context});
      if (JobDriver.this.handlerManager.getActiveContextHandler() == 0) {
        throw new RuntimeException("Active Context Handler not initialized by CLR.");
      }
      final ActiveContextBridge activeContextBridge = activeContextBridgeFactory.getActiveContextBridge(context);
      NativeInterop.clrSystemActiveContextHandlerOnNext(JobDriver.this.handlerManager.getActiveContextHandler(),
          activeContextBridge, JobDriver.this.interopLogger);
    } catch (final Exception ex) {
      LOG.log(Level.SEVERE, "Fail to submit task to active context");
      context.close();
      throw new RuntimeException(ex);
    }
  }
1054220
def get(self, sid):
        
        return WorkflowContext(self._version, workspace_sid=self._solution['workspace_sid'], sid=sid, )
1061108
protected Context getContext() {
        if (act != null) {
            return act;
        }
        if (root != null) {
            return root.getContext();
        }
        return context;
    }
758229
public function getContext() {
        return new ExecutionStepContextContext(
            $this->version,
            $this->solution['flowSid'],
            $this->solution['executionSid'],
            $this->solution['stepSid']
        );
    }
1041164
def build_action(self, runnable, regime, action):
        

        if isinstance(action, StateAssignment):
            return self.build_state_assignment(runnable, regime, action)
        if isinstance(action, EventOut):
            return self.build_event_out(action)
        if isinstance(action, Transition):
            return self.build_transition(action)
        else:
            return ['pass']
245564
public List<MockActiveContext> getIdleActiveContexts() {
    final List<MockActiveContext> idleActiveContexts = new ArrayList<>();
    final Set<String> activeContextsWithRunningTasks = new HashSet<>();
    for (final MockRunningTask task : this.runningTasks) {
      activeContextsWithRunningTasks.add(task.getActiveContext().getEvaluatorId());
    }
    for (final MockActiveContext context : this.activeContexts) {
      if (!activeContextsWithRunningTasks.contains(context.getEvaluatorId())) {
        idleActiveContexts.add(context);
      }
    }
    return idleActiveContexts;
  }
972877
def _fill_context_menu_with_model_item_actions(self, context_menu: QMenu):
        
        # Get phrase folders to add to main menu
        logger.info("Rebuilding model item actions, adding all items marked for access through the tray icon.")
        folders = [folder for folder in self.config_manager.allFolders if folder.show_in_tray_menu]
        items = [item for item in self.config_manager.allItems if item.show_in_tray_menu]
        # Only extract the QActions, but discard the PopupMenu instance.
        # This is done, because the PopupMenu class is not directly usable as a context menu here.
        menu = popupmenu.PopupMenu(self.app.service, folders, items, False, "AutoKey")
        new_item_actions = menu.actions()
        context_menu.addActions(new_item_actions)
        for action in new_item_actions:  # type: QAction
            # QMenu does not take the ownership when adding QActions, so manually re-parent all actions.
            # This causes the QActions to be destroyed when the context menu is cleared or re-created.
            action.setParent(context_menu)

        if not context_menu.isEmpty():
            # Avoid a stray separator line, if no items are marked for display in the context menu.
            context_menu.addSeparator()
1031395
public static SynchronizedIterable<AgentContext> getContextsOf(Agent agent) throws Exception {
		final ExternalContextAccess skill = SREutils.getInternalSkill(agent, ExternalContextAccess.class);
		assert skill != null;
		return skill.getAllContexts();
	}
380148
public static <T> SchedulableActionContext<T> unschedulableActionContext(
	    final SchedulableActionContext<T> context) {
	return new UnschedulableDelegateActionContext<>(Objects.requireNonNull(context));
    }
638962
def get(self, sid):
        
        return StepContext(
            self._version,
            flow_sid=self._solution['flow_sid'],
            engagement_sid=self._solution['engagement_sid'],
            sid=sid,
        )
520204
def inject_context(context):
    
    context_path = tasks.get_context_path()
    try:
        new_context = json.loads(context)
    except ValueError:
        print('Couldn\'t load context parameter')
        return
    with open(context_path) as jsonfile:
        try:
            jsondata = json.loads(jsonfile.read())
            jsondata.update(new_context)
        except ValueError:
            print('Couldn\'t read context.json')
            return
    with open(context_path, 'w') as jsoncontent:
        json.dump(jsondata, jsoncontent, indent=4)
1361636
def get(self):
        
        return EngagementContextContext(
            self._version,
            flow_sid=self._solution['flow_sid'],
            engagement_sid=self._solution['engagement_sid'],
        )
244385
public static <T extends Callable<?> & Parcelable> Intent taskIntent(final Context context,
                                                                       final T task) {
    return taskIntent(context, Goro.DEFAULT_QUEUE, task);
  }
1272309
def context(self):
        
        parent = _ACTION_CONTEXT.set(self)
        try:
            yield self
        finally:
            _ACTION_CONTEXT.reset(parent)