Skip to content

Commit

Permalink
Add supported language for actions anchors, closes #1659
Browse files Browse the repository at this point in the history
  • Loading branch information
krook authored and Carlos Santana committed Feb 20, 2017
1 parent fa7d23d commit 8486aa6
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions docs/actions.md
Expand Up @@ -2,11 +2,17 @@
# Creating and invoking OpenWhisk actions


Actions are stateless code snippets that run on the OpenWhisk platform. An action can be a JavaScript function, a Swift function, or a custom executable program packaged in a Docker container. For example, an action can be used to detect the faces in an image, aggregate a set of API calls, or post a Tweet.
Actions are stateless code snippets that run on the OpenWhisk platform. An action can be written as a JavaScript, Swift, or Python function, a Java method, or a custom executable program packaged in a Docker container. For example, an action can be used to detect the faces in an image, respond to a database change, aggregate a set of API calls, or post a Tweet.

Actions can be explicitly invoked, or run in response to an event. In either case, a run of an action results in an activation record that is identified by a unique activation ID. The input to an action and the result of an action are a dictionary of key-value pairs, where the key is a string and the value a valid JSON value.
Actions can be explicitly invoked, or run in response to an event. In either case, each run of an action results in an activation record that is identified by a unique activation ID. The input to an action and the result of an action are a dictionary of key-value pairs, where the key is a string and the value a valid JSON value. Actions can also be composed of calls to other actions or a defined sequence of actions.

Learn how to create, invoke, and debug actions in your preferred development environment:
* [JavaScript](#creating-and-invoking-javascript-actions)
* [Swift](#creating-swift-actions)
* [Python](#creating-python-actions)
* [Java](#creating-java-actions)
* [Docker](#creating-docker-actions)

Actions can be composed of calls to other actions or a defined sequence of actions.

## Creating and invoking JavaScript actions

Expand Down Expand Up @@ -765,7 +771,7 @@ You can clean up by deleting actions that you do not want to use.
```
actions
```

## Accessing action metadata within the action body

The action environment contains several properties that are specific to the running action.
Expand Down

0 comments on commit 8486aa6

Please sign in to comment.