Más contenido relacionado Similar a Kailas by Wadit in YAPC::Asia 2009 (20) Kailas by Wadit in YAPC::Asia 20098. •
–
–
–
• Copyright© 2009 ITmedia, Inc.
25. Kailas
Process
Repository Designer
Kailas Framework
Configuration
Monitoring Syntax Validation
Rule Validation
Begin Process
Check Business Rule
State Rule
Engine core- Engine
API
State Management
Finish Process
Make Application Decision Service
Data Entry
Web Check Data Type
Application
Web Interface Collaborative Web Site
“Simon”activities
31. Kailas
jQuery UI
Designer
JSON
core-API
HTML::FormFu
Web
Application
Catalyst
32. jQuery UI
•
•
Droppable
Icon CSS
Tabs
Draggable
Dialog
Progressbar
Sortable
33. JSON/YAML
process: •
name:
activity:
‐ name: –
data:
‐ name:
type: Text
‐ name: •
type: Text –
‐ name:
type: Text •
‐ name:
data:
‐ name: •
type: Text
‐ name:
data:
‐ name:
type: Date
34. HTML::FormFu
•
•
•
–
Designer JSON Parser JSON / DB HTML::FormFu
Kailas::Web HTML
Catalyst App
35. sub get_activity_form{}; in Web
sub get_activity_form {
my ( $self, $activity ) = @_;
my $form = HTML::FormFu‐>new();
my @elements;
for my $data ( $activity‐>data ) {
my @constraints = ('Required');
if ( JSON::decode_json( $data‐>validation )‐>{type} ) {
push( @constraints, JSON::decode_json( $data‐>validation ) );
}
my $args = {
type => $activity‐>approval ? 'Label' : $data‐>type,
name => $data‐>name,
value => $data‐>value || '',
label => $data‐>name,
constraints => @constraints,
};
push( @elements, $args );
}
$form‐>elements( @elements );
return $form;
}