|
@@ -91,14 +91,7 @@ transitions:
|
|
} else {
|
|
} else {
|
|
$this->parameters = array('workflow_name' => $this->getSubject()->getName(), 'workflow_subject' => $this->getSubject()->getSubject());
|
|
$this->parameters = array('workflow_name' => $this->getSubject()->getName(), 'workflow_subject' => $this->getSubject()->getSubject());
|
|
}
|
|
}
|
|
- $_supports = WorkFlowEntityClasses::getClass();
|
|
|
|
- $supports = array();
|
|
|
|
- foreach($_supports as $key => $class) {
|
|
|
|
- if(class_exists($key)) {
|
|
|
|
- $supports[$key] = $key;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
|
|
+
|
|
$formMapper
|
|
$formMapper
|
|
->add('name')
|
|
->add('name')
|
|
->add('description')
|
|
->add('description')
|
|
@@ -106,7 +99,11 @@ transitions:
|
|
->add('type', 'choice', array('choices' => array('state_machine' => 'state_machine', 'workflow' => 'workflow')))
|
|
->add('type', 'choice', array('choices' => array('state_machine' => 'state_machine', 'workflow' => 'workflow')))
|
|
->add('markingType', 'choice', array('choices' => array('single_state' => 'single_state', 'multiple_state' => 'multiple_state')))
|
|
->add('markingType', 'choice', array('choices' => array('single_state' => 'single_state', 'multiple_state' => 'multiple_state')))
|
|
->add('markingName', 'choice', array('choices' => array('currentState' => 'currentState')))
|
|
->add('markingName', 'choice', array('choices' => array('currentState' => 'currentState')))
|
|
- ->add('support', 'choice', array('choices' => $supports,'multiple' => true, 'required' => true))
|
|
|
|
|
|
+ ->add('support', 'choice', array(
|
|
|
|
+ 'choices' => array_filter(WorkFlowEntityClasses::getChoices(), 'class_exists'),
|
|
|
|
+ 'multiple' => true,
|
|
|
|
+ 'required' => true
|
|
|
|
+ ))
|
|
->add('template', null, $tempate_options)
|
|
->add('template', null, $tempate_options)
|
|
|
|
|
|
->setHelps(array(
|
|
->setHelps(array(
|