-
1. Re: i don't have the folder that contain to service repository for twitter, how i can get it?
swiderski.maciej Jan 15, 2014 1:47 AM (in response to bakir)1 of 1 people found this helpfulyou need to connect to the remote repository, see docs for the actual URL.
HTH
-
2. Re: i don't have the folder that contain to service repository for twitter, how i can get it?
bakir Jan 15, 2014 10:29 PM (in response to swiderski.maciej)maybe i´m wrong in the published picture, but insisting, you can say me where i can see the docs for the actual URL?
please!!!!
-
3. Re: i don't have the folder that contain to service repository for twitter, how i can get it?
swiderski.maciej Jan 16, 2014 1:27 AM (in response to bakir)1 of 1 people found this helpful -
5. Re: i don't have the folder that contain to service repository for twitter, how i can get it?
enric82 Jan 22, 2014 2:00 AM (in response to bakir)Hi Diyar Bakir,
Can you share which video ad you are looking at?
-
7. Re: i don't have the folder that contain to service repository for twitter, how i can get it?
bakir Jan 22, 2014 11:47 PM (in response to enric82)Enrinc Choo
tell me if it works, what the video shows, please
-
8. Re: i don't have the folder that contain to service repository for twitter, how i can get it?
bakir Jan 27, 2014 4:05 PM (in response to bakir)package com.sample;
import org.drools.process.instance.WorkItemHandler;
import org.drools.runtime.process.WorkItem;
import org.drools.runtime.process.WorkItemManager;
import twitter4j.Status;
import twitter4j.Twitter;
import twitter4j.TwitterException;
import twitter4j.TwitterFactory;
import twitter4j.conf.ConfigurationBuilder;
public class HelloProcessExtension implements WorkItemHandler{
public void executeWorkItem (WorkItem workitem, WorkItemManager manager){
Twitter twitter;
ConfigurationBuilder configBuilder = new ConfigurationBuilder();
configBuilder
.setDebugEnabled(true)
.setOAuthConsumerKey("YOUR ConsumerKEY")
.setOAuthConsumerSecret("YOUR ConsumerSecret")
.setOAuthAccessToken("YOUR AccessToken")
.setOAuthAccessTokenSecret("YOUR TokenSecret");
twitter = new TwitterFactory(configBuilder.build()).getInstance();
Status status;
try {
status = twitter.updateStatus("a una semana de mis vacaciones" );
System.out.println("Successfully updated the status to [" + status.getText() + "].");
} catch (TwitterException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
manager.completeWorkItem(workitem.getId(),null);
}
public void abortWorkItem(WorkItem workitem, WorkItemManager manager) {
// TODO Auto-generated method stub
}
}