Uma regra pode ser utilizada como condição de um compoundCondition?
Pra descobrir isso eu ia fazer um teste, mas não consegui nem fazer uma compoundCondition sem rule.
Se alguém puder me ajudar...
Os erros exibidos pelo Composer são:
JVM v1.5.0 or later...[OK]
Detecting JMF...[OK]
Loading plugins...
End plugins loading...
[error] AWT-EventQueue-0: [Fatal Error] :8:6: The processing instruction target matching "[xX][mM][lL]" is not allowed.
[error] AWT-EventQueue-0: [Fatal Error] :8:6: The processing instruction target matching "[xX][mM][lL]" is not allowed.
[error] AWT-EventQueue-0: [Fatal Error] :8:6: The processing instruction target matching "[xX][mM][lL]" is not allowed.
[error] AWT-EventQueue-0: [Fatal Error] :8:6: The processing instruction target matching "[xX][mM][lL]" is not allowed.
[error] AWT-EventQueue-0: [Fatal Error] :8:6: The processing instruction target matching "[xX][mM][lL]" is not allowed.
[error] AWT-EventQueue-0: [Fatal Error] :8:6: The processing instruction target matching "[xX][mM][lL]" is not allowed.
[error] AWT-EventQueue-0: [Fatal Error] :8:6: The processing instruction target matching "[xX][mM][lL]" is not allowed.
[error] AWT-EventQueue-0: [Fatal Error] :8:6: The processing instruction target matching "[xX][mM][lL]" is not allowed.
[error] AWT-EventQueue-0: [Fatal Error] :8:6: The processing instruction target matching "[xX][mM][lL]" is not allowed.
[error] AWT-EventQueue-0: [Fatal Error] :8:6: The processing instruction target matching "[xX][mM][lL]" is not allowed.
Autor: Leonardo Alexandre Ferreira Leite
22 comentários
OBJETIVO: testar se é possível utilizar uma regra como condição de um compoundCondtion -
MÉTODO:
1) fazer um compoundCondtion: exibir o vídeo se o botão for selecionado e se a propriedade idioma for igual a Pt
2) fazer a regra
--> <?xml version="1.0" encoding="ISO-8859-1"?>
<ncl xsi:schemaLocation="http://www.ncl.org.br/NCL3.0/EDTVProfile www.ncl.org.br/NCL3.0/profiles/NCL30EDTV.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.ncl.org.br/NCL3.0/EDTVProfile" id="newDocument1"> <head> <!-- CONECTORES -->
<connectorBase>
<causalConnector id="onSelectionAndTestStart">
<connectorParam name="value"/>
<compoundCondition operator="and">
<simpleCondition role="onSelection" />
<assessmentStatement comparator="eq">
<attributeAssessment role="attNodeTest" eventType="attribution" attributeType="nodeProperty"/>
<valueAssessment value="$value"/>
</assessmentStatement>
</compoundCondition>
<simpleAction role="start" max="unbounded" qualifier="par"/>
</causalConnector> </connectorBase> <!-- REGIÕES -->
<regionBase>
<region left="0.0%" top="0.0%" width="1024" height="768" id="rgTela">
<region left="192" top="68" width="640" height="480" id="rgVideo1"/>
<region left="192" top="20" width="238" height="48" id="rgBotao1"/>
</region>
</regionBase> <!-- DESCRITORES -->
<descriptorBase>
<descriptor region="rgVideo1" id="dVideo1"/>
<descriptor region="rgTitulo1" id="dTitulo1"/>
</descriptorBase> </head> <body> <port component="botao1" id="port_newDocument1"/> <!-- NÓS DE MÍDIA -->
<media descriptor="dVideo1" src="media/video1.mpeg" type="video/mpeg" id="video1"/>
<media descriptor="dTitulo1" src="media/botao1.jpg" type="image/jpeg" id="botao1"/>
<media type="application/x-ginga-settings" id="nodeSettings">
<property name="idioma" value="Pt"/>
</media> <!-- ELOS --> <!-- faz com que o vídeo se inicie se o botão for apertado e se idioma=Pt ->
<!-- o teste é feito alterando-se o valor de idioma diretamente no código fonte --> <link xconnector="onSelectionAndTestStart" id="link01">
<bind role="onSelection" component="botao1"/>
<bind role="attNodeTest" component="nodeSettings" interface="idioma">
<bindParam name="value" value="Pt">
</bind>
<bind role="start" component="video1"/>
</link> </body>
</ncl>
OBJETIVO: testar se é possível utilizar uma regra como condição de um compoundCondtion -
MÉTODO:
1) fazer um compoundCondtion: exibir o vídeo se o botão for selecionado e se a propriedade idioma for igual a Pt
2) fazer a regra
--> Presumo que seja esse o motivo da mensagem de erro que aparece para vc. Como sugestão, acho que fica melhor ajudá-lo em você corrigindo isso e retornando com um feedback se tudo funcionou ou não. Carlos