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,与该主题关联的任何订阅都将运行。在这种情况下,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.然而,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.
从工作台开始,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.
在工作台上,create a new workspace that will fail.This should consist of a Creator,减速器和终结者。Choose a suitable delay inside the Decelerator.
将工作区发布到FME服务器,making sure the properties for the Job Submitter service are set to post to the JobOutcomeLittleBits.
从FME服务器运行故障工作区。
When the workspace fails,这将向主题发送消息。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,等。
© 2019 亚搏在线Safe Software Inc |Legal