Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

worksmith_rascal

Package Overview
Dependencies
Maintainers
3
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

worksmith_rascal

Rascal activites for worksmith

  • 0.2.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
3
Weekly downloads
 
Created
Source

worksmith_rascal

Rascal activities for worksmith

This package contains the following activities/tasks:

namedescription
publishPublishes a message a rascal publication
receiveOneReceives a message from a rascal publication

publish activity

Publish as message to a rascal publication

params
nametypedescription
brokerRascal BrokerWill look in context.broker if not specified
publicationPublication idWhere to send the message
payloadThe payload to publish
routingKeyRouting key to use when publishing the message. Will override the routing key defined in the publication
optionsOther publication options (see rascal documentation)
example
var worksmith = require('worksmith')
worksmith.use('rascal', require('worksmith_rascal'))
var workflow = worksmith({task:"sequence", items : [{
    task:'rascal/publish',
    broker: '@broker',
    publication: 'p1',
    payload: 'test message',
    resultTo: 'messageId'
}])

receiveOne activity

Receives exactly one message from a subscription within a given timeout. Causes an error if no message could be received.

When a message is received the result is { message: rabbitMsg, content: parsed<message.content> }

params
nametypedescription
brokerRascal BrokerWill look in context.broker if not specified
subscriptionSubscription idRascal subscription name to receive from
timeOutmillisecondsamount of time to wait for a message
optionsOther subscription options (see rascal documentation)
example
var worksmith = require('worksmith')
worksmith.use('rascal', require('worksmith_rascal'))
var workflow = worksmith({task:"sequence", items : [{
    task:'rascal/receiveOne',
    broker: '@broker',
    subscription: 's1',
    resultTo: 'message'
}])

Running tests

You need an rabbitmq server running on localhost:5672 for the tests to pass. If you have docker and docker-compose installed simply run docker-compose up in the route of this project.

Keywords

FAQs

Package last updated on 17 Jun 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc