span8
span4
span8
span4
You will need to make sure you have an output bit after a cloudBit in the circuit.
Asubscriptionin FME Server will receive notifications from topics.In response,they deliver messages to an FME Workspace or to other clients over a supported protocol.
In the previous exercise,a workspace was created that uses the littleBitsConnector transformer to trigger an event on the littleBits by using the writeToDevice action.In this exercise that workspace will be published to FME Server where it can be triggered based on other events.
This is done by registering the workspace with the Notification Service and subscribing to a Topic.When the selected Topic gets triggered in FME Server,any subscriptions associated with that topic will run.In this case,the subscription will be the littleBits workspace.
This is a more exciting and interesting option compared to email!
Registering the workspace with the NotificationService automatically creates the subscription.However,you can also create subscriptions through the Web UI for FME Server:
Follow the instructions in'Posting to the littleBits cloudBit'to create a workspace that can trigger an event on the littleBits.
Once you have a workspace that can post to the littleBits,this can be turned into an FME Server Subscription.This subscription will then be triggered by a topic in FME Server.
In the Web UI for FME Server,create a new topic called JobOutcomeLittleBits.
From Workbench,publish the workspace that is using the 'writeToDevice' action in the littleBitsConnector to FME Server.Register it with the Notification Service.Edit the Notification Service properties and subscribe to the topic you just created: JobOutcomeLittleBits.
In Workbench,create a new workspace that will fail.This should consist of a Creator,Decelerator and Terminator.Choose a suitable delay inside the Decelerator.
Publish the workspace to FME Server,making sure the properties for the Job Submitter service are set to post to the JobOutcomeLittleBits.
Run the failure workspace from FME Server.
When the workspace fails,this posts a message to the topic.The topic then triggers any subscriptions,causing the workspace that calls the littleBits.
Workspace (Failure workspace) --> Topic (JobOutcomeLittleBits) --> Subscription Workspace (littleBits workspace)
You should find the event happens on the littleBits when the job fails.This could be a LED lighting up,sound playing,a motor moving,etc.
© 2019 亚搏在线Safe Software Inc |Legal