自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(28)
  • 收藏
  • 关注

原创 iOS Apps with REST APIs(二)

重要说明: 这是一个系列教程,非本人原创,而是翻译国外的一个教程。本人也在学习Swift,看到这个教程对开发一个实际的APP非常有帮助,所以翻译共享给大家。原教程非常长,我会陆续翻译并发布,欢迎交流与分享。再另,原文发布在我的博客中:iOS Apps with REST APIs(二)我已准备好到直接跳到了一些对你有用的代码。但是,苹果在iOS9中引入App Transpo...

2016-06-20 22:58:29 173

原创 iOS Apps with REST APIs(一)

重要说明: 这是一个系列教程,非本人原创,而是翻译国外的一个教程。本人也在学习Swift,看到这个教程对开发一个实际的APP非常有帮助,所以翻译共享给大家。原教程非常长,我会陆续翻译并发布,欢迎交流与分享。另,原教程有第一章,讲述该教程及相关基础概念,感觉没有什么必要翻译,所以这里略过。有兴趣的可以自行上网去找原版教程。再另,原文发布在我的博客中:iOS Apps with RES...

2016-06-20 22:28:54 260

原创 Swift大开脑洞系列(一)

 如果我们要对一个列表进行排序时,在java中我们通常这么做:// 我们将User按照排序号进行排序List<User> userList = this.userService.loadAll();Collections.sort(userList, new Comparator<User>() { @Override public ...

2016-05-19 19:05:27 149

原创 如何使用Guava的缓存管理

    最近正在重构公司平台中的一些组件,有一些涉及到缓存的处理。发现Guava的缓存还是非常不错的,所以把CachesExplained翻译了一下,供大家一起参考。    首先,看一下使用范例: LoadingCache<Key,Graph> graphs =CacheBuilder.newBuilder() .maximumSize(1000) ...

2014-03-30 17:38:23 632

原创 图形连线路由算法

      最近打算将工作流引擎设计器使用html5技术进行重构,所以研究了一下html5中绘图技术,今天在这里主要是探讨一下图形之间连线处理算法,之前在网上找到了这篇博文:连线自动路由算法,感兴趣的大家可以参考一下(不过这个是基于GEF的),基于Javascript的尚未找到比较好的解决方案,因此决定自己动手(毕竟后面要实现整个设计器也必须得自己动手)。       图形之间的连线路由算...

2014-03-20 16:34:15 3331

原创 编写卓越代码之命名那些事儿 -- 2

为名字附加相关信息     函数参数、变量、配置文件中的属性Key中我们经常会涉及到带有度量信息的名字,如常见的定时任务执行的period,如:bpm.job.period = 300000    一般我们知道period的单位为毫秒(ms),但是有时候我们会很难清晰的指导该变量值的单位是什么,毫秒、秒、分钟还是小时,幸运一点可以通过注释得到答案,不幸的时候你需要自己测试...

2012-08-02 09:01:16 89

编写卓越代码之命名那些事儿

循环迭代器的命名     我们在编写循环的时候经常使用i,j,k,itor等等名称,通常我们也知道这是一个循环迭代器的名称,但是你是否写过类似下面的代码: for(int i = 0; i < clubs.size(); i++){ for(int j = 0; j < clubs[i].members.size();j++){ for(in...

2012-07-25 08:42:28 101

原创 Eclipse Orion 试用手记

今天在网站看到Eclipse即将发布了一个基于浏览器的IDE--Orion(猎户座),于是到Eclipse网站上下载了一个试用一下。Orion在发布的版本是0.4版,可以通过Eclipse Orion链接来下载(文件也不大,在win32版本的大概40多M)。试用步骤如下。第一步:首先将下载的文件eclipse-orion-0.4-win32.win32.x86.zip进行解压,解压后里面有...

2012-04-11 09:50:31 796

signavio-core-components编译初体验

    最近又开始研究Activiti这个BPM框架,昨天开始尝试了它的建模工具signavio,在编译的时候遇到了一些问题,经过几番努力终于解决,心里还是有点小成就感。    首先从googlecode网站上可以下载该建模工具的源码,地址为:http://code.google.com/p/signavio-core-components/source/checkout。    下载后按...

2012-03-28 11:17:48 236

原创 由于spn授权不正确造成Spengo无法单点登录的解决

今天同事问我本来集成好的单点登录为什么突然自动登录不了,还真浪费了一个下午,终于找到原因了 我们的一个项目采用了Spengo(可以看这里)集成了Windows的AD进行自动登录,前一段时间还挺正常的,登录到域的用户可以自动登录到系统。这几天新增了服务,重新部署后发现用户不能够自动登录了,同事也费了好大劲检查了各种配置参数,都是没有思路。然后找到了我,我也是弄了好久终于发现是spn注册的问题...

2012-02-28 18:34:30 669

Activiti User Guide -- Activit 用户指南 Part11

User task用户任务 Description描述A 'user task' is used to model work that needs to be doneby a human actor. When process executes arrives at such a user task, a new taskis created in the ta...

2010-10-31 10:24:24 132

Activiti User Guide -- Activit 用户指南 Part10

Gateways网关A gateway is used to control the flow of execution (or asthe BPMN 2.0 describes, the tokens of execution). A gateway is capable ofconsuming or generating tokens.网关用来控制流程的执行(或者像BPM...

2010-10-31 10:15:24 221

Activiti User Guide -- Activit 用户指南 Part09

Sequence flow顺序流Description描述A sequence flow is the connector between two elements ofa process. After an element is visited during process execution, all outgoingsequence flow will be f...

2010-10-31 10:08:50 169

Activiti User Guide -- Activit 用户指南 Part08

BPMN 2.0 constructsBPMN 2.0 构件Customextensions自定义扩展The BPMN 2.0 standard is a good thing for all partiesinvolved. End-users don't suffer from a vendor lock-in that comes by dependingo...

2010-10-30 15:04:36 219

Activiti User Guide -- Activit 用户指南 Part07

Now we can start a new process instance using the id we defined in the process definition (see first line of the XML). Notethat this id in Activiti terminology is called the key.现在我们就可以使用id来创建一...

2010-10-30 14:53:33 207

Activiti User Guide -- Activit 用户指南 Part06

 Chapter 7. BPMN第七章 BPMNTable of ContentsWhat is BPMN?ExamplesDefining a processGetting started: 10 minute tutorialUse caseProcess diagramXML representationStarting a process ins...

2010-10-30 14:46:17 200

Activiti User Guide -- Activit 用户指南 Part05

Chapter 6. Deployment第六章 部署Table of ContentsBusiness archivesDeploying programmaticallyDeploying with antVersioning of process definitionsBusiness archives业务档案To deploy processes,...

2010-10-24 17:09:47 212

Activiti User Guide -- Activit 用户指南 Part04

 Chapter 5. API第五章 APITable of ContentsEngine APIException strategyUnit testingThe activiti-webapp-init.warProcess Virtual Machine APIEngine API引擎APIThe engine API is the most co...

2010-10-24 17:07:05 157

Activiti User Guide -- Activit 用户指南 Part03

Chapter 4. Spring integration第四章 Spring集成Table of ContentsProcessEngineFactoryBeanTransactionsExpressionsAutomatic resource deploymentUnit testingWhile you can use Activiti without ...

2010-10-19 22:04:55 98

Activiti User Guide -- Activit 用户指南 Part02

Chapter 3. Configuration第三章 配置 Table of ContentsConfiguration propertiesSupported databasesChanging the database Activiti configuration files should be generated with thesetup a...

2010-10-17 18:36:57 110

Activiti User Guide -- Activit 用户指南 Part01

    终于告一个段落了,前一段时间忙着开发一个流转引擎,所以这一段时间也没有跟踪Activiti的进展,直到前几天才开始重新研究,觉得先把用户指南好好看看,顺便也进行了翻译,不敢独享,所以发表出来和大家一起分享。    还是采用以前的方式同时把中英文发布出来,由于本人英语不是很好,所以翻译过程中肯定有很多值得商榷的地方,请大家多多包涵。    后面我会逐渐把整个用户指南发布,现在还没有全...

2010-10-17 18:33:47 125

jBPM Developers Guide(jBPM开发指南)--Chapter 3. BPMN 2.0(第六部分)

3.9. Complete example(including console task forms)( 完整示例(包括控制台任务表单))     Prerequisites: to run the example, we assume that a working jBPMconsole has been installed on your JBoss server. If n...

2010-06-22 20:15:17 110

jBPM Developers Guide(jBPM开发指南)--Chapter 3. BPMN 2.0(第五部分)

3.8.12. Task: Script Task(脚本任务)    A script task is aan automatic activity upon which the process engine will execute a script whenthe task is reached. The script task is used as follows: ...

2010-06-22 19:43:08 94

jBPM Developers Guide(jBPM开发指南)--Chapter 3. BPMN 2.0(第四部分)

 3.8.9. Tasks(任务)    A task representswork that needs to be done by an external entity, such as a human actor or anautomated service.     一个任务表示工作需要被外部实体完成,比如人工或自动服务。     It's impo...

2010-06-20 22:03:36 119

jBPM Developers Guide(jBPM开发指南)--Chapter 3. BPMN 2.0(第三部分)

3.8.5. Sequence Flow(顺序流)    A sequence flow isthe connection between events, activities and gateways shown as a solid linewith an arrow in a BPMN diagram (JPDL equivalent is the transition). ...

2010-06-20 21:47:18 237

jBPM Developers Guide(jBPM开发指南)--Chapter 3. BPMN 2.0(第二部分)

 3.7. Process root element(流程根元素)    The root of an BPMN 2.0 XMLprocess is the definitions elements. As the name states, thesubelements will contain the actual definitions of the business ...

2010-06-20 21:29:28 100

jBPM Developers Guide(jBPM开发指南)--Chapter 3. BPMN 2.0(第一部分)

前几天看了jBPM4.3版的开发指南,网上也有翻译但是觉得好像是使用翻译软件翻译的,所以自己进行了重新翻译。这是第一次进行翻译,希望大家多多指正。下面把中英文都发表上来.3.1. What is BPMN 2.0?( BPMN 2.0是什么?)    The Business Process Modeling Notation (BPMN) is a standard for the gr...

2010-06-19 09:16:28 152

利用Spring动态对Quartz定时任务管理

在开发时我们会常常遇到定时任务可以由客户进行管理在什么时候去执行或者甚至不再执行该定时任务。而Spring中所提供的定时任务组件却只能够通过修改trigger的配置才能够控制定时的时间以及是否启用定时任务,为此我搜索了网上的一些解决方法,发现还是不能够很好的解决这个问题。所以干脆仔仔细细的研究了一把Quartz和Spring中相关的源码,我们发现当我们在Spring通过如下声明定时任务时: ...

2010-04-29 09:37:37 108

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除